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:
@@ -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)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user