__init__.py
branchstable
changeset 3710 5bfdb591050a
parent 3684 c0a854810942
child 3720 5376aaadd16b
child 4212 ab6573088b4a
--- a/__init__.py	Fri Oct 16 17:11:44 2009 +0200
+++ b/__init__.py	Fri Oct 16 17:12:10 2009 +0200
@@ -141,11 +141,12 @@
         restrictions = set()
         cachekey = []
         pending_relations = []
-        for attr, value in kwargs.iteritems():
+        for attr, value in kwargs.items():
             if isinstance(value, (tuple, list, set, frozenset)):
                 if len(value) == 1:
                     value = iter(value).next()
                 else:
+                    del kwargs[attr]
                     pending_relations.append( (attr, value) )
                     continue
             if hasattr(value, 'eid'): # non final relation