mirror of
https://github.com/django/django.git
synced 2025-07-04 17:59:13 +00:00
magic-removal: Fixed #1552 -- Gave verbose_name_plural a default value
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2593 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
72f6ce935a
commit
fec6bb5d5c
@ -52,6 +52,8 @@ class Options:
|
||||
# Any leftover attributes must be invalid.
|
||||
if meta_attrs != {}:
|
||||
raise TypeError, "'class Meta' got invalid attribute(s): %s" % ','.join(meta_attrs.keys())
|
||||
else:
|
||||
self.verbose_name_plural = self.verbose_name + 's'
|
||||
del self.meta
|
||||
|
||||
def _prepare(self, model):
|
||||
|
Loading…
x
Reference in New Issue
Block a user