Skip to content

Commit 673c085

Browse files
committed
auditlog not used anymore
1 parent 9f7f37f commit 673c085

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

dojo/apps.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import logging
22

33
from django.apps import AppConfig
4-
from django.conf import settings
54
from django.core.checks import register as register_check
65
from django.db import models
76
from watson import search as watson
@@ -17,12 +16,6 @@ class DojoAppConfig(AppConfig):
1716
verbose_name = "Defect Dojo"
1817

1918
def ready(self):
20-
if settings.ENABLE_AUDITLOG:
21-
from auditlog.registry import auditlog # noqa: PLC0415 raised: AppRegistryNotReady
22-
23-
from dojo.location.models import Location # noqa: PLC0415 raised: AppRegistryNotReady
24-
25-
auditlog.register(Location)
2619
# we need to initializer waston here because in models.py is to early if we want add extra fields to index
2720
# logger.info('ready(): initializing watson')
2821
# commented out ^ as it prints in manage.py dumpdata, docker logs and many other places

0 commit comments

Comments
 (0)