I think that Django does not support model inheritance (yet). The dev team seems to have thought about it : http://code.djangoproject.com/wiki/ModelInheritance
You might want to ask Google for "django model inheritance" for all the information you need. -- David On 30-Mar-08, at 4:27 PM, jurian wrote: > > How would I go about implementing a model that only exists to be > inherited from and not used on it's own? > > Example: > > class Animal(models.Model): > name = models.CharField() > > class Dog(Animal): > x = models.CharField() > > class Cat(Animal): > y = models.CharField() > > > In the example I want to create and manipulate dog and cat objects, > but I will never need to use animal objects, so the animal table > doesn't need to be created at all. > > --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---