From 5112fb777ecc7094d498e3512ea868c515746292 Mon Sep 17 00:00:00 2001 From: Dmitry Konishchev Date: Sun, 2 Nov 2014 17:56:25 +0300 Subject: [PATCH] Mention Document.modify() in the documentation --- docs/guide/querying.rst | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/guide/querying.rst b/docs/guide/querying.rst index 77e35df0..bb8176fe 100644 --- a/docs/guide/querying.rst +++ b/docs/guide/querying.rst @@ -491,8 +491,11 @@ Documents may be updated atomically by using the :meth:`~mongoengine.queryset.QuerySet.update_one`, :meth:`~mongoengine.queryset.QuerySet.update` and :meth:`~mongoengine.queryset.QuerySet.modify` methods on a -:meth:`~mongoengine.queryset.QuerySet`. There are several different "modifiers" -that you may use with these methods: +:class:`~mongoengine.queryset.QuerySet` or +:meth:`~mongoengine.Document.modify` and +:meth:`~mongoengine.Document.save` (with :attr:`save_condition` argument) on a +:class:`~mongoengine.Document`. +There are several different "modifiers" that you may use with these methods: * ``set`` -- set a particular value * ``unset`` -- delete a particular value (since MongoDB v1.3+)