Fixed a thinko-fix in toDict
The pick() view was broken because of this.
Patch by: Sverre Rabbelier
--- 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