Better fix for .save() _delta issue with DbRefs
refs: hmarr/mongoengine#518
This commit is contained in:
parent
9fecf2b303
commit
1a97dfd479
2 changed files with 3 additions and 8 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue