Fix for:Base document _mark_as_changed bug #1369

This commit is contained in:
Gang Li 2016-09-04 14:20:59 -04:00
parent 8e7c5af16c
commit ca415d5d62

View File

@ -491,7 +491,7 @@ class BaseDocument(object):
# remove lower level changed fields
level = '.'.join(levels[:idx]) + '.'
remove = self._changed_fields.remove
for field in self._changed_fields:
for field in self._changed_fields[:]:
if field.startswith(level):
remove(field)