Fixed #6755: model inheritance now works in the admin. Thanks, sloonz and Michael Placentra.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@8033 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Jacob Kaplan-Moss 2008-07-22 01:10:06 +00:00
parent c236874c48
commit 863f4eb1d7
4 changed files with 24 additions and 0 deletions

View file

@ -159,4 +159,19 @@ Traceback (most recent call last):
...
DoesNotExist: ItalianRestaurant matching query does not exist.
# Regression test for #6755
>>> r = Restaurant(serves_pizza=False)
>>> r.save()
>>> r.id
3
>>> r.place_ptr_id
3
>>> r = Restaurant(place_ptr_id=3, serves_pizza=True)
>>> r.save()
>>> r.id
3
>>> r.place_ptr_id
3
"""}