Support for db.PolyModel?

17 views
Skip to first unread message

trung

unread,
Jan 3, 2010, 4:03:48 PM1/3/10
to app-engine-django
reference to PolyModel http://code.google.com/appengine/docs/python/datastore/polymodelclass.html

Does appengine_django.models.BaseModel support db.PolyModel?

If not, then can I do something like this?

class Person(BaseModel, PolyModel):
pass

class Employee(Employee):
employee_attribute = ...

class Manager(Person):
manager_attribute = ...


Please let me know if you have used PolyModel in combination with
BaseModel.

This beats querying multiple tables instead of just one. :)

Reply all
Reply to author
Forward
0 new messages