Hi,
I have the following problem with admin and multi table inheritance I
don't understand (django 1.1.1).

Model definition

class Place(models.Model):
    name = models.CharField(max_length=50)
    address = models.CharField(max_length=80)

class Restaurant(Place):
    serves_hot_dogs = models.BooleanField()
    serves_pizza = models.BooleanField()

In the admin pages for adding restaurant instances I see the field of
the parent class (name and address) and the parent instance get
created as expected.

How can I link directly to an _exixting_ Place instance?
If I fill in name and address in the child admin add page, then I get
duplicates in the parent table.

Is there a solution or I am missing something trivial?

Thanks in advance,

__peppo

-- 
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