We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5669d06 commit d479580Copy full SHA for d479580
dojo/models.py
@@ -702,8 +702,8 @@ def long_desc(self):
702
703
def save(self, *args, **kwargs):
704
super(Finding, self).save(*args, **kwargs)
705
- if hasattr(settings, 'ENABLE_DEDUPLICATION'):
706
- if settings.ENABLE_DEDUPLICATION and (len(self.endpoints.all()) != 0):
+ system_settings = System_Settings.objects.get()
+ if system_settings.enable_deduplication :
707
from dojo.tasks import async_dedupe
708
async_dedupe.delay(self, *args, **kwargs)
709
0 commit comments