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...
1 parent 72f6ce9 commit fec6bb5d5ccf7c502d9c98cb9629887a3588e9a9 @adrianholovaty adrianholovaty committed Mar 29, 2006
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):

0 comments on commit fec6bb5

Please sign in to comment.