mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Fixed #11369 -- Corrected verbose_name_plural model Meta option to be consistent with verbose_name when using abstract model inheritance. Thanks Beetle_B for the report.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@14588 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -103,6 +103,20 @@ class DerivedM(BaseM):
|
||||
return "PK = %d, base_name = %s, derived_name = %s" \
|
||||
% (self.customPK, self.base_name, self.derived_name)
|
||||
|
||||
class AuditBase(models.Model):
|
||||
planned_date = models.DateField()
|
||||
|
||||
class Meta:
|
||||
abstract = True
|
||||
verbose_name_plural = u'Audits'
|
||||
|
||||
class CertificationAudit(AuditBase):
|
||||
class Meta(AuditBase.Meta):
|
||||
abstract = True
|
||||
|
||||
class InternalCertificationAudit(CertificationAudit):
|
||||
auditing_dept = models.CharField(max_length=20)
|
||||
|
||||
# Check that abstract classes don't get m2m tables autocreated.
|
||||
class Person(models.Model):
|
||||
name = models.CharField(max_length=100)
|
||||
|
||||
Reference in New Issue
Block a user