From ecf13f192de7c26a7606f5ba46a3773a9c84ef72 Mon Sep 17 00:00:00 2001 From: Jure Cuhalev Date: Sat, 8 Jun 2024 12:17:27 +0200 Subject: [PATCH] [5.1.x] Doc'd that SessionMiddleware is required for the admin site. The system check "admin.E410" was already checking for this, but the requirement was not listed in docs/ref/contrib/admin/index.txt. Backport of f8ef4579ea710f93ec7edc93c6f3f216bd55d6be from main. --- docs/ref/contrib/admin/index.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/ref/contrib/admin/index.txt b/docs/ref/contrib/admin/index.txt index 5c9c35e263..c2061f11ab 100644 --- a/docs/ref/contrib/admin/index.txt +++ b/docs/ref/contrib/admin/index.txt @@ -41,7 +41,8 @@ If you're not using the default project template, here are the requirements: `. #. If you've customized the :setting:`MIDDLEWARE` setting, - :class:`django.contrib.auth.middleware.AuthenticationMiddleware` and + :class:`django.contrib.sessions.middleware.SessionMiddleware`, + :class:`django.contrib.auth.middleware.AuthenticationMiddleware`, and :class:`django.contrib.messages.middleware.MessageMiddleware` must be included.