# HG changeset patch # User Sverre Rabbelier # Date 1236985960 0 # Node ID 2651cb3979dbdaf0f7c2b623c4577f89c9d9c764 # Parent 006ca71ed07a9dd13e397a16bf7530feeef94abb Fixed a thinko-fix in toDict The pick() view was broken because of this. Patch by: Sverre Rabbelier 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