Hey, quick query question. I know there has to be an answer for this
one, just don't know the syntax. I need to follow the reverse
relationship for an extended model.

class Account(models.Model):
    name = CharField

class Entry(models.Model):
    account = ForeignKey(Account)

class Page(Entry):
    name = CharField


There's my simple example. I want to get all pages that belong to
Account. account.page_set.all() does not relate, and I can do
account.entry_set.all(), but i obviously get all entries, which is a
problem because there will be many extended entry classes. Thanks in
advance!

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to