How to query parent entity from child entity in Google App Engine (Python) NDB/Datastore?

后端 未结 1 1582
情深已故
情深已故 2020-12-31 09:46

My question is very fundamental, I want to know straight forward and right way to access attribute values of parent entity from a child in App Engine Python. For example I h

相关标签:
1条回答
  • 2020-12-31 10:04

    Use: image_instance.key.parent().get()

    https://developers.google.com/appengine/docs/python/ndb/keyclass#Key_parent

    0 讨论(0)
提交回复
热议问题