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.

rusty

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

Reply via email to