events: ignore session model

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2022-05-30 20:22:36 +02:00
parent 6d94c2c925
commit fc75867218
1 changed files with 2 additions and 0 deletions

View File

@ -3,6 +3,7 @@ from functools import partial
from typing import Callable from typing import Callable
from django.conf import settings from django.conf import settings
from django.contrib.sessions.models import Session
from django.core.exceptions import SuspiciousOperation from django.core.exceptions import SuspiciousOperation
from django.db.models import Model from django.db.models import Model
from django.db.models.signals import post_save, pre_delete from django.db.models.signals import post_save, pre_delete
@ -24,6 +25,7 @@ IGNORED_MODELS = [
UserObjectPermission, UserObjectPermission,
AuthenticatedSession, AuthenticatedSession,
StaticToken, StaticToken,
Session,
] ]
if settings.DEBUG: if settings.DEBUG:
from silk.models import Request, Response, SQLQuery from silk.models import Request, Response, SQLQuery