Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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
  • Loading branch information...
commit fec6bb5d5ccf7c502d9c98cb9629887a3588e9a9 1 parent 72f6ce9
@adrianholovaty adrianholovaty authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  django/db/models/options.py
View
2  django/db/models/options.py
@@ -52,6 +52,8 @@ def contribute_to_class(self, cls, name):
# 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):
Please sign in to comment.
Something went wrong with that request. Please try again.