1
0
mirror of https://github.com/django/django.git synced 2025-10-29 16:46:11 +00:00

Fixed #12004 -- Improved error reporting when an abstract class is registered with the admin. Thanks to Matt Smalley for the report, and to mk and Julien Phalip for the patch.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@15636 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Russell Keith-Magee
2011-02-23 13:43:21 +00:00
parent 7aa84917a4
commit 12bd7bcb35
3 changed files with 20 additions and 3 deletions

View File

@@ -7,5 +7,9 @@ from django.db import models
class Person(models.Model):
name = models.CharField(max_length=200)
class Place(models.Model):
class Location(models.Model):
class Meta:
abstract = True
class Place(Location):
name = models.CharField(max_length=200)