mirror of
https://github.com/django/django.git
synced 2025-10-26 15:16:09 +00:00
Fixed #31616 -- Added hint about middleware ordering for SessionMiddleware admin check.
This commit is contained in:
committed by
Mariusz Felisiak
parent
f24b59267b
commit
18759b2209
@@ -214,6 +214,12 @@ class SystemChecksTestCase(SimpleTestCase):
|
||||
checks.Error(
|
||||
"'django.contrib.sessions.middleware.SessionMiddleware' "
|
||||
"must be in MIDDLEWARE in order to use the admin application.",
|
||||
hint=(
|
||||
"Insert "
|
||||
"'django.contrib.sessions.middleware.SessionMiddleware' "
|
||||
"before "
|
||||
"'django.contrib.auth.middleware.AuthenticationMiddleware'."
|
||||
),
|
||||
id='admin.E410',
|
||||
),
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user