Using the Google App Engine and Python SDKs, I ran into a problem: I cannot access the ID property for these object properties. The only properties available to me are those defined in my model, plus the key property (see Answer below):
class Question(db.Model): text = db.StringProperty() answers = db.StringListProperty() user = db.UserProperty() datetime = db.DateTimeProperty()
I can access texts, answers, users, dates, and key properties. However, I cannot access the ID property. For example, after retrieving all the objects (using Question.all ()):
# OK Within a template, this will return a string : {{ question.text }} # OK, this will return the entity key : {{ question.key }} # KO this will return nothing : {{ question.id }}
Any ideas? Thanks!
python google-app-engine entity google-cloud-datastore
jbmusso
source share