Fetching just the Key/id from a ReferenceProperty in App Engine
- by ozone
Hi SO, I could use a little help in AppEngine land...
Using the [Python] API I create relationships like this example from the docs:
class Author(db.Model):
name = db.StringProperty()
class Story(db.Model):
author = db.ReferenceProperty(Author)
story = db.get(story_key)
author_name = story.author.name
As I understand it, that example…