[Patchew-devel] [PATCH 03/11] settings: Remove SessionAuthenticationMiddleware

fam@euphon.net posted 11 patches 3 years, 11 months ago
[Patchew-devel] [PATCH 03/11] settings: Remove SessionAuthenticationMiddleware
Posted by fam@euphon.net 3 years, 11 months ago
From: Fam Zheng <fam@euphon.net>

The django doc said this is unused (unconditional), and the object is
not present in newer djangos:

https://docs.djangoproject.com/en/3.1/releases/2.0/
---
 patchew/settings.py | 1 -
 1 file changed, 1 deletion(-)

diff --git a/patchew/settings.py b/patchew/settings.py
index e851a4c..ce21eee 100644
--- a/patchew/settings.py
+++ b/patchew/settings.py
@@ -58,7 +58,6 @@ MIDDLEWARE = [
     "django.middleware.common.CommonMiddleware",
     "django.middleware.csrf.CsrfViewMiddleware",
     "django.contrib.auth.middleware.AuthenticationMiddleware",
-    "django.contrib.auth.middleware.SessionAuthenticationMiddleware",
     "django.contrib.messages.middleware.MessageMiddleware",
     "django.middleware.clickjacking.XFrameOptionsMiddleware",
 ]
-- 
2.25.1



_______________________________________________
Patchew-devel mailing list
Patchew-devel@redhat.com
https://www.redhat.com/mailman/listinfo/patchew-devel