Pass write_concern parameter from update_one

This commit is contained in:
Alex Kelly 2013-04-30 21:13:49 +01:00
parent 1c345edc49
commit 00a57f6cea

View File

@ -469,7 +469,8 @@ class QuerySet(object):
.. versionadded:: 0.2
"""
return self.update(upsert=upsert, multi=False, write_concern=None, **update)
return self.update(
upsert=upsert, multi=False, write_concern=write_concern, **update)
def with_id(self, object_id):
"""Retrieve the object matching the id provided. Uses `object_id` only