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