mirror of
https://github.com/django/django.git
synced 2025-12-10 03:10:10 +00:00
Fixed #25984 -- Corrected RuntimeError message in ModelBase.__new__().
This commit is contained in:
parent
a53175392f
commit
692d055890
2 changed files with 4 additions and 5 deletions
|
|
@ -73,8 +73,7 @@ ALWAYS_MIDDLEWARE_CLASSES = [
|
|||
|
||||
# Need to add the associated contrib app to INSTALLED_APPS in some cases to
|
||||
# avoid "RuntimeError: Model class X 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."
|
||||
# and isn't in an application in INSTALLED_APPS."
|
||||
CONTRIB_TESTS_TO_APPS = {
|
||||
'flatpages_tests': 'django.contrib.flatpages',
|
||||
'redirects_tests': 'django.contrib.redirects',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue