Fix line width.
This commit is contained in:
parent
07ef58c1a7
commit
0f68df3b4a
@ -205,23 +205,22 @@ supplying the :attr:`reverse_delete_rule` attributes on the
|
|||||||
|
|
||||||
class Employee(Document):
|
class Employee(Document):
|
||||||
...
|
...
|
||||||
profile_page = ReferenceField('ProfilePage', delete_rule=mongoengine.NULLIFY)
|
profile_page = ReferenceField('ProfilePage', reverse_delete_rule=mongoengine.NULLIFY)
|
||||||
|
|
||||||
Its value can take any of the following constants:
|
Its value can take any of the following constants:
|
||||||
|
|
||||||
:const:`mongoengine.DO_NOTHING`
|
:const:`mongoengine.DO_NOTHING`
|
||||||
This is the default and won't do anything. Deletes are fast, but may
|
This is the default and won't do anything. Deletes are fast, but may cause
|
||||||
cause database inconsistency or dangling references.
|
database inconsistency or dangling references.
|
||||||
:const:`mongoengine.DENY`
|
:const:`mongoengine.DENY`
|
||||||
Deletion is denied if there still exist references to the object being
|
Deletion is denied if there still exist references to the object being
|
||||||
deleted.
|
deleted.
|
||||||
:const:`mongoengine.NULLIFY`
|
:const:`mongoengine.NULLIFY`
|
||||||
Any object's fields still referring to the object being deleted are
|
Any object's fields still referring to the object being deleted are removed
|
||||||
removed (using MongoDB's "unset" operation), effectively nullifying the
|
(using MongoDB's "unset" operation), effectively nullifying the relationship.
|
||||||
relationship.
|
|
||||||
:const:`mongoengine.CASCADE`
|
:const:`mongoengine.CASCADE`
|
||||||
Any object containing fields that are refererring to the object being
|
Any object containing fields that are refererring to the object being deleted
|
||||||
deleted are deleted first.
|
are deleted first.
|
||||||
|
|
||||||
|
|
||||||
Generic reference fields
|
Generic reference fields
|
||||||
|
Loading…
x
Reference in New Issue
Block a user