mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
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:
parent
c236874c48
commit
863f4eb1d7
4 changed files with 24 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
||||
"""}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue