Fix for:Base document _mark_as_changed bug #1369
This commit is contained in:
parent
8e7c5af16c
commit
ca415d5d62
@ -491,7 +491,7 @@ class BaseDocument(object):
|
|||||||
# remove lower level changed fields
|
# remove lower level changed fields
|
||||||
level = '.'.join(levels[:idx]) + '.'
|
level = '.'.join(levels[:idx]) + '.'
|
||||||
remove = self._changed_fields.remove
|
remove = self._changed_fields.remove
|
||||||
for field in self._changed_fields:
|
for field in self._changed_fields[:]:
|
||||||
if field.startswith(level):
|
if field.startswith(level):
|
||||||
remove(field)
|
remove(field)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user