server/repository.py
branchstable
changeset 2875 b7399ef8b3e0
parent 2873 51bcd8e8f65c
child 2880 bfc8e1831290
child 2920 64322aa83a1d
child 2929 51cdfe069e10
--- a/server/repository.py	Mon Aug 17 12:11:04 2009 +0200
+++ b/server/repository.py	Mon Aug 17 12:11:54 2009 +0200
@@ -1004,7 +1004,7 @@
                 relations.append((attr, entity[attr]))
         if source.should_call_hooks:
             self.hm.call_hooks('before_add_entity', etype, session, entity)
-        entity.edited_attributes = entity.keys()
+        entity.edited_attributes = set(entity)
         entity.set_defaults()
         entity.check(creation=True)
         source.add_entity(session, entity)