Fix line width.

This commit is contained in:
Vincent Driessen 2010-12-20 05:52:21 -08:00
parent 07ef58c1a7
commit 0f68df3b4a

View File

@ -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