Base class ReferenceProperty initialization

5 views
Skip to first unread message

Paul

unread,
Sep 11, 2008, 2:36:58 PM9/11/08
to Google App Engine
Hi, I have a question regarding inheritance and ReferenceProperty,
using a setup like this:

class Item(BaseModel):
created_by = db.ReferenceProperty(MyUserClass)

class Book(Item):
name = db.StringProperty()

After instantiating a Book object, I would have expected the
MyUserClass to have an entry in the item_set, but it doesn't appear to
have one.

Is this a reasonable expectation?

If not, what do i need to do to ensure it's correct initialization?

Thanks,

Paul.

google-app-engine-django -r52
django http://code.djangoproject.com/svn/django/tags/notable_moments/1.0-alpha/django
appengine 1.1.1 - 7/24/08
Reply all
Reply to author
Forward
0 new messages