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

Fixed #25984 -- Corrected RuntimeError message in ModelBase.__new__().

This commit is contained in:
Varun Sharma
2015-12-24 23:58:32 +05:30
committed by Tim Graham
parent a53175392f
commit 692d055890
2 changed files with 4 additions and 5 deletions

View File

@@ -98,9 +98,9 @@ class ModelBase(type):
if not abstract:
raise RuntimeError(
"Model class %s.%s doesn't declare an explicit "
"app_label and either isn't in an application in "
"INSTALLED_APPS or else was imported before its "
"application was loaded. " % (module, name))
"app_label and isn't in an application in "
"INSTALLED_APPS." % (module, name)
)
else:
app_label = app_config.label