In reference to this two questions (see links below) and the Google AppEngine doc, I got a little bit confused:
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
source google
The doc example indicates that the object which has the ReferenceProperty
is the "owner" object, which (can have) has such an object as relational item.
The links below show it vice-versa:
The object which has the ReferenceProperty
is the "owned" object.
Now my question is, what is right, or what aspect of the ReferenceProperty
am I missing/missunderstanding.
regards,