diff -r 006ca71ed07a -r 2651cb3979db app/soc/models/base.py --- 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