How to do a back-reference on Google Webapp?
- by jCuga
I'm trying to access an object that is linked to by a db.ReferenceProperty in Google app engine. here's the model's code:
class InquiryQuestion(db.Model):
inquiry_ref = db.ReferenceProperty(reference_class=GiftInquiry, required=True, collection_name="inquiry_ref")
And I am trying to access it in the following way:
linkedObject = question.inquiry_ref
and then
linkedKey = linkedObject.key
but it's not working. Can anyone please help?