mirror of
https://github.com/django/django.git
synced 2025-08-03 02:23:12 +00:00
[2.2.x] Fixed #30312 -- Relaxed admin check from django.contrib.sessions to SessionMiddleware subclasses.
Backport of efeceba589
from master
This commit is contained in:
parent
3c3df7db8e
commit
a4095dadc4
5 changed files with 28 additions and 11 deletions
|
@ -657,13 +657,13 @@ The following checks are performed on the default
|
|||
:setting:`INSTALLED_APPS` in order to use the admin application.
|
||||
* **admin.E406**: :mod:`django.contrib.messages` must be in
|
||||
:setting:`INSTALLED_APPS` in order to use the admin application.
|
||||
* **admin.E407**: :mod:`django.contrib.sessions` must be in
|
||||
:setting:`INSTALLED_APPS` in order to use the admin application.
|
||||
* **admin.E408**:
|
||||
:class:`django.contrib.auth.middleware.AuthenticationMiddleware` must be in
|
||||
:setting:`MIDDLEWARE` in order to use the admin application.
|
||||
* **admin.E409**: :class:`django.contrib.messages.middleware.MessageMiddleware`
|
||||
must be in :setting:`MIDDLEWARE` in order to use the admin application.
|
||||
* **admin.E410**: :class:`django.contrib.sessions.middleware.SessionMiddleware`
|
||||
must be in :setting:`MIDDLEWARE` in order to use the admin application.
|
||||
|
||||
``auth``
|
||||
--------
|
||||
|
|
|
@ -49,3 +49,9 @@ Bugfixes
|
|||
|
||||
* Fixed a regression in Django 2.2 that caused an exception to be raised when
|
||||
a custom error handler could not be imported (:ticket:`30318`).
|
||||
|
||||
* Relaxed the system check added in Django 2.2 for the admin app's dependencies
|
||||
to reallow use of
|
||||
:class:`~django.contrib.sessions.middleware.SessionMiddleware` subclasses,
|
||||
rather than requiring :mod:`django.contrib.sessions` to be in
|
||||
:setting:`INSTALLED_APPS` (:ticket:`30312`).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue