Documentation for PULL reverse_delete_rule

This commit is contained in:
Meir Kriheli
2012-06-07 12:32:02 +03:00
parent 8060179f6d
commit 26db9d8a9d
3 changed files with 10 additions and 0 deletions

View File

@@ -289,6 +289,10 @@ Its value can take any of the following constants:
:const:`mongoengine.CASCADE`
Any object containing fields that are refererring to the object being deleted
are deleted first.
:const:`mongoengine.PULL`
Removes the reference to the object (using MongoDB's "pull" operation)
from any object's fields of
:class:`~mongoengine.ListField` (:class:`~mongoengine.ReferenceField`).
.. warning::