mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +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:
@@ -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
|
||||
|
||||
|
||||
"""}
|
||||
|
||||
Reference in New Issue
Block a user