File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -863,12 +863,11 @@ class ReferenceField(BaseField):
863863
864864 The options are:
865865
866- * DO_NOTHING - don't do anything (default).
867- * NULLIFY - Updates the reference to null.
868- * CASCADE - Deletes the documents associated with the reference.
869- * DENY - Prevent the deletion of the reference object.
870- * PULL - Pull the reference from a :class:`~mongoengine.fields.ListField`
871- of references
866+ * DO_NOTHING (0) - don't do anything (default).
867+ * NULLIFY (1) - Updates the reference to null.
868+ * CASCADE (2) - Deletes the documents associated with the reference.
869+ * DENY (3) - Prevent the deletion of the reference object.
870+ * PULL (4) - Pull the reference from a :class:`~mongoengine.fields.ListField` of references
872871
873872 Alternative syntax for registering delete rules (useful when implementing
874873 bi-directional delete rules)
You can’t perform that action at this time.
0 commit comments