On 5/15/2009 8:18 AM, Rusty Greer wrote: > > > I have something like this: > > class Class1(models.Model): > // lots of fields here > > class AbstractThing(models.Model): > // lots of fields here > class1field = model.ForeignKey(Class1) > class Meta: > abstract = True > > class ThingType1(AbstractThing): > // lots of fields here > > class ThingType2(AbstractThing): > // lots of fields here > > > in my template, i want to be able to do something like: > class1.abstractthing_set.all > > but that doesn't seem to work, i seem to have to do: > class1.thingtype1_set.all and class1.thingtype2_set.all > > does this make sense? am i missing something? > > any help would be appreciated.
The pattern you describe should work fine. What exactly isn't working? -- George --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@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 -~----------~----~----~----~------~----~------~--~---