dataimport.py
changeset 7471 bf9443f8725f
parent 7398 26695dd703d8
child 7815 2a164a9cf81c
--- a/dataimport.py	Tue Jun 07 12:54:45 2011 +0200
+++ b/dataimport.py	Tue Jun 07 16:07:06 2011 +0200
@@ -642,7 +642,9 @@
         for k, v in kwargs.iteritems():
             kwargs[k] = getattr(v, 'eid', v)
         entity, rels = self.metagen.base_etype_dicts(etype)
+        # make a copy to keep cached entity pristine
         entity = copy(entity)
+        entity.cw_edited = copy(entity.cw_edited)
         entity.cw_clear_relation_cache()
         self.metagen.init_entity(entity)
         entity.cw_edited.update(kwargs, skipsec=False)