summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
authorVarun Sharma <varunsharmalive@gmail.com>2015-12-24 23:58:32 +0530
committerTim Graham <timograham@gmail.com>2015-12-24 16:45:38 -0500
commitdc1ef0ff2e4f7d6e5bef1a5ae4223cbea90044db (patch)
treeea3428e8f44ad19601db6311923b60dda1c875e1 /django
parent85159b98196e129e6ad493b503f3b49012c280ff (diff)
[1.9.x] Fixed #25984 -- Corrected RuntimeError message in ModelBase.__new__().
Backport of 692d05589061a593d4bfbdb2895eaef0386eca34 from master
Diffstat (limited to 'django')
-rw-r--r--django/db/models/base.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/django/db/models/base.py b/django/db/models/base.py
index 7655f35160..e1a94d34d1 100644
--- a/django/db/models/base.py
+++ b/django/db/models/base.py
@@ -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