Better fix for .save() _delta issue with DbRefs

refs: hmarr/mongoengine#518
This commit is contained in:
Ross Lawley
2012-06-19 14:05:53 +01:00
parent 9fecf2b303
commit 1a97dfd479
2 changed files with 3 additions and 8 deletions

View File

@@ -226,6 +226,7 @@ class Document(BaseDocument):
if cascade_kwargs: # Allow granular control over cascades
kwargs.update(cascade_kwargs)
kwargs['_refs'] = _refs
self._changed_fields = []
self.cascade_save(**kwargs)
except pymongo.errors.OperationFailure, err: