Yeah, that is going to be my fallback, I was just curious on an actual reverse relationship solution to the situation. Thanks for the input!
On Apr 28, 4:12 pm, zinckiwi <zinck...@gmail.com> wrote: > > 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! > > Perhaps not the most sophisticated solution, but I would expect > Page.objects.filter(account=account) to work. > > Regards > Scott > > -- > 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 > athttp://groups.google.com/group/django-users?hl=en. -- 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.