Pass write_concern parameter from update_one
This commit is contained in:
parent
1c345edc49
commit
00a57f6cea
@ -469,7 +469,8 @@ class QuerySet(object):
|
|||||||
|
|
||||||
.. versionadded:: 0.2
|
.. 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):
|
def with_id(self, object_id):
|
||||||
"""Retrieve the object matching the id provided. Uses `object_id` only
|
"""Retrieve the object matching the id provided. Uses `object_id` only
|
||||||
|
Loading…
x
Reference in New Issue
Block a user