From fec6bb5d5ccf7c502d9c98cb9629887a3588e9a9 Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Wed, 29 Mar 2006 06:17:25 +0000 Subject: [PATCH] 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 --- django/db/models/options.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/django/db/models/options.py b/django/db/models/options.py index 335c92c52a..6656c14207 100644 --- a/django/db/models/options.py +++ b/django/db/models/options.py @@ -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):