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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user