Update querying.rst

This commit is contained in:
Bruno Rocha 2014-07-02 18:56:42 -03:00
parent 99e943c365
commit 7975f19817

View File

@ -527,7 +527,7 @@ modifier comes before the field, not after it::
.. note:: .. note::
If no modifier operator is specified the default will be `set` the both following sentences are identical:: If no modifier operator is specified the default will be ``$set``. So the following sentences are identical::
>>> BlogPost.objects(id=post.id).update(title='Example Post') >>> BlogPost.objects(id=post.id).update(title='Example Post')
>>> BlogPost.objects(id=post.id).update(set__title='Example Post') >>> BlogPost.objects(id=post.id).update(set__title='Example Post')