docstring correction
Corrected the docstring for `mongoengine.queryset.base.update_one()`
This commit is contained in:
parent
2f1fae38dd
commit
44f92d4169
@ -472,7 +472,8 @@ class BaseQuerySet(object):
|
|||||||
raise OperationError(u'Update failed (%s)' % unicode(err))
|
raise OperationError(u'Update failed (%s)' % unicode(err))
|
||||||
|
|
||||||
def update_one(self, upsert=False, write_concern=None, **update):
|
def update_one(self, upsert=False, write_concern=None, **update):
|
||||||
"""Perform an atomic update on first field matched by the query.
|
"""Perform an atomic update on the fields of the first document
|
||||||
|
matched by the query.
|
||||||
|
|
||||||
:param upsert: Any existing document with that "_id" is overwritten.
|
:param upsert: Any existing document with that "_id" is overwritten.
|
||||||
:param write_concern: Extra keyword arguments are passed down which
|
:param write_concern: Extra keyword arguments are passed down which
|
||||||
|
Loading…
x
Reference in New Issue
Block a user