app/soc/models/base.py
changeset 1845 2651cb3979db
parent 1809 66aec0241d61
child 2059 4037b147ed10
--- a/app/soc/models/base.py	Fri Mar 13 23:12:15 2009 +0000
+++ b/app/soc/models/base.py	Fri Mar 13 23:12:40 2009 +0000
@@ -61,7 +61,7 @@
     props = self.properties()
 
     if not field_names:
-      field_names = [i for i in props.keys() if isinstance(i, self.DICT_TYPES)]
+      field_names = [k for k, v in props.iteritems() if isinstance(v, self.DICT_TYPES)]
 
     for key, value in props.iteritems():
       # Skip everything that is not valid