Revert "events: ignore silk SQLQuery object"

This reverts commit a26f25ccd6.

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2022-05-23 20:29:05 +02:00
parent cbd95848e7
commit b7979ad48e
1 changed files with 1 additions and 3 deletions

View File

@ -25,12 +25,10 @@ IGNORED_MODELS = [
AuthenticatedSession, AuthenticatedSession,
StaticToken, StaticToken,
] ]
try: if settings.DEBUG:
from silk.models import Request, Response, SQLQuery from silk.models import Request, Response, SQLQuery
IGNORED_MODELS += [Request, Response, SQLQuery] IGNORED_MODELS += [Request, Response, SQLQuery]
except ImportError:
pass
IGNORED_MODELS = tuple(IGNORED_MODELS) IGNORED_MODELS = tuple(IGNORED_MODELS)