Include IntegerProperty in the JSON object
Patch by: Sverre Rabbelier, "Mario Ferraro" <fadinlight@gmail.com>
--- a/app/soc/models/base.py Sat Mar 07 20:26:58 2009 +0000
+++ b/app/soc/models/base.py Sat Mar 07 20:27:24 2009 +0000
@@ -56,8 +56,8 @@
props = self.properties()
for key, value in props.iteritems():
- # Skip everything but StringProperties
- if not isinstance(value, db.StringProperty):
+ # Skip everything but StringProperties and IntegerProperties
+ if not isinstance(value, (db.StringProperty, db.IntegerProperty)):
continue
result[key] = getattr(self, key)