File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import logging
22
33from django .apps import AppConfig
4- from django .conf import settings
54from django .core .checks import register as register_check
65from django .db import models
76from 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
You can’t perform that action at this time.
0 commit comments