1
0
mirror of https://github.com/django/django.git synced 2025-10-28 08:06:09 +00:00

Replaced Options.object_name.lower() by Options.model_name.

Thanks Simon for the suggestion.

Also removed inappropriate lowercasing of app labels in migrations.
Unlike model names, they are case sensitive.
This commit is contained in:
Aymeric Augustin
2013-12-29 18:42:12 +01:00
parent 308960b92a
commit 20d487c27b
9 changed files with 10 additions and 10 deletions

View File

@@ -152,7 +152,7 @@ class ModelState(object):
options[name] = model._meta.original_attrs[name]
# Make our record
bases = tuple(
("%s.%s" % (base._meta.app_label, base._meta.object_name.lower()) if hasattr(base, "_meta") else base)
("%s.%s" % (base._meta.app_label, base._meta.model_name) if hasattr(base, "_meta") else base)
for base in model.__bases__
if (not hasattr(base, "_meta") or not base._meta.abstract)
)