I need to be able to make a tree like structure in the appengine database.
I have try to make an object reference itself but have not gotten it to work.
class Item(db.Model):
children = db.ListProperty(db.ReferenceProperty(Item))
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Alternatively, you can store references to children in the parent with:
This answer shamelessly stolen (with credit!) from Nick Johnson’s answer to this related question