Documentation for PULL reverse_delete_rule
This commit is contained in:
		| @@ -2,6 +2,10 @@ | |||||||
| Changelog | Changelog | ||||||
| ========= | ========= | ||||||
|  |  | ||||||
|  | Changes in 0.6.x | ||||||
|  | ================= | ||||||
|  | - PULL reverse_delete_rule | ||||||
|  |  | ||||||
| Changes in 0.6.10 | Changes in 0.6.10 | ||||||
| ================= | ================= | ||||||
| - Fixed basedict / baselist to return super(..) | - Fixed basedict / baselist to return super(..) | ||||||
|   | |||||||
| @@ -289,6 +289,10 @@ Its value can take any of the following constants: | |||||||
| :const:`mongoengine.CASCADE` | :const:`mongoengine.CASCADE` | ||||||
|   Any object containing fields that are refererring to the object being deleted |   Any object containing fields that are refererring to the object being deleted | ||||||
|   are deleted first. |   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:: | .. warning:: | ||||||
|   | |||||||
| @@ -656,6 +656,8 @@ class ReferenceField(BaseField): | |||||||
|       * NULLIFY     - Updates the reference to null. |       * NULLIFY     - Updates the reference to null. | ||||||
|       * CASCADE     - Deletes the documents associated with the reference. |       * CASCADE     - Deletes the documents associated with the reference. | ||||||
|       * DENY        - Prevent the deletion of the reference object. |       * DENY        - Prevent the deletion of the reference object. | ||||||
|  |       * PULL        - Pull the reference from a :class:`~mongoengine.ListField` | ||||||
|  |                       of references | ||||||
|  |  | ||||||
|     Alternative syntax for registering delete rules (useful when implementing |     Alternative syntax for registering delete rules (useful when implementing | ||||||
|     bi-directional delete rules) |     bi-directional delete rules) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user