Hello dear teachers.
I'm a new to web2py and this community.
I would like to know that how to write "back-references" using
datastore API.
Although I'm actually new to datastore API too, I know that there is a
way to get entities which refer to the particular entity like this
way.
---------------------------------------------------------------------
class FirstModel(db.Model):
prop = db.IntegerProperty()
class SecondModel(db.Model):
reference = db.ReferenceProperty(FirstModel)
obj1 = FirstModel()
for obj in obj1.secondmodel_set
--------------------------------------------------------------------
----this code is from
http://code.google.com/intl/en/appengine/docs/python/datastore/datamodeling.html
I would like to do this on web2py.
Dorasan.