How can I get access to the implicit property names of a db.Model in Google App Engine? In particular, assume I have the following:
class Foo(db.Model):
specific = db.IntegerProperty()
class Bar(db.Model):
foo = db.ReferenceProperty(Foo, collection_name = "bars")
if I attempt to get the property names on Foo, like so:
my_foo = Foo(specific = 42)
for key, prop in my_foo.properties().iteritems()
print "HERE bars won't show up"
then the my_foo.bars property doesn't show up. Or am I totally mistaken?
Any help greatly appreciated
edited model to be Python, not ruby