> now if i want to list all the children of a particular parent how do i
> do that?
parent_entity.childmodel_set
You can customise the name of the collectio:
parent = db.ReferenceProperty(ParentModel,
collection_name='children')
... then call:
parent_entity.children
Docs:
http://code.google.com/appengine/docs/datastore/typesandpropertyclasses.html#ReferenceProperty
--
www.muspy.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---