From fc7586721807b49e0aa6f23ca3eb5983f6ba2598 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Mon, 30 May 2022 20:22:36 +0200 Subject: [PATCH] events: ignore session model Signed-off-by: Jens Langhammer --- authentik/events/middleware.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/authentik/events/middleware.py b/authentik/events/middleware.py index b0bd71ae6..d15c75647 100644 --- a/authentik/events/middleware.py +++ b/authentik/events/middleware.py @@ -3,6 +3,7 @@ from functools import partial from typing import Callable from django.conf import settings +from django.contrib.sessions.models import Session from django.core.exceptions import SuspiciousOperation from django.db.models import Model from django.db.models.signals import post_save, pre_delete @@ -24,6 +25,7 @@ IGNORED_MODELS = [ UserObjectPermission, AuthenticatedSession, StaticToken, + Session, ] if settings.DEBUG: from silk.models import Request, Response, SQLQuery