magic-removal: module_name is no longer a valid 'class Meta' attribute
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2113 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
8ec8a8720e
commit
d78533535f
|
@ -9,8 +9,8 @@ import re
|
||||||
# Calculate the verbose_name by converting from InitialCaps to "lowercase with spaces".
|
# Calculate the verbose_name by converting from InitialCaps to "lowercase with spaces".
|
||||||
get_verbose_name = lambda class_name: re.sub('([A-Z])', ' \\1', class_name).lower().strip()
|
get_verbose_name = lambda class_name: re.sub('([A-Z])', ' \\1', class_name).lower().strip()
|
||||||
|
|
||||||
DEFAULT_NAMES = ('module_name', 'verbose_name', 'verbose_name_plural', 'db_table', 'ordering',
|
DEFAULT_NAMES = ('verbose_name', 'verbose_name_plural', 'db_table', 'ordering',
|
||||||
'unique_together', 'admin','where_constraints', 'exceptions', 'permissions',
|
'unique_together', 'admin', 'where_constraints', 'exceptions', 'permissions',
|
||||||
'get_latest_by', 'order_with_respect_to', 'module_constants')
|
'get_latest_by', 'order_with_respect_to', 'module_constants')
|
||||||
|
|
||||||
class Options:
|
class Options:
|
||||||
|
|
Loading…
Reference in New Issue