dataimport.py
changeset 5557 1a534c596bff
parent 5424 8ecbcbff9777
child 6122 4d2b04b32cdc
--- a/dataimport.py	Thu May 20 20:47:55 2010 +0200
+++ b/dataimport.py	Thu May 20 20:50:00 2010 +0200
@@ -584,7 +584,7 @@
             kwargs[k] = getattr(v, 'eid', v)
         entity, rels = self.metagen.base_etype_dicts(etype)
         entity = copy(entity)
-        entity._related_cache = {}
+        entity.cw_clear_relation_cache()
         self.metagen.init_entity(entity)
         entity.update(kwargs)
         entity.edited_attributes = set(entity)