diff options
| author | Varun Sharma <varunsharmalive@gmail.com> | 2015-12-24 23:58:32 +0530 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2015-12-24 16:44:58 -0500 |
| commit | 692d05589061a593d4bfbdb2895eaef0386eca34 (patch) | |
| tree | 64d741a03bb92f54313f3ebbef612429863c705e /django | |
| parent | a53175392ff753cc53a4a2d33a5852d113e67363 (diff) | |
Fixed #25984 -- Corrected RuntimeError message in ModelBase.__new__().
Diffstat (limited to 'django')
| -rw-r--r-- | django/db/models/base.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/django/db/models/base.py b/django/db/models/base.py index 149b0e5a42..028367d584 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 |
