Skip to content

Commit

Permalink
Fix: missing System_Settings raised error (#8663)
Browse files Browse the repository at this point in the history
  • Loading branch information
kiblik authored Sep 18, 2023
1 parent cf7cbf1 commit fdbd57c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions dojo/test/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
ReImportScanForm, JIRAFindingForm, JIRAImportScanForm, \
FindingBulkUpdateForm, CopyTestForm
from dojo.models import IMPORT_UNTOUCHED_FINDING, Finding, Finding_Group, Test, Note_Type, BurpRawRequestResponse, Endpoint, Stub_Finding, \
Finding_Template, Cred_Mapping, System_Settings, Test_Import, Product_API_Scan_Configuration, Test_Import_Finding_Action
Finding_Template, Cred_Mapping, Test_Import, Product_API_Scan_Configuration, Test_Import_Finding_Action

from dojo.tools.factory import get_choices_sorted, get_scan_types_sorted
from dojo.utils import add_error_message_to_response, add_field_errors_to_response, add_success_message_to_response, get_page_items, get_page_items_and_count, add_breadcrumb, get_cal_event, process_notifications, get_system_setting, \
Expand Down Expand Up @@ -74,7 +74,6 @@ def view_test(request, tid):
stub_findings = Stub_Finding.objects.filter(test=test)
cred_test = Cred_Mapping.objects.filter(test=test).select_related('cred_id').order_by('cred_id')
creds = Cred_Mapping.objects.filter(engagement=test.engagement).select_related('cred_id').order_by('cred_id')
system_settings = get_object_or_404(System_Settings, id=1)
if request.method == 'POST':
user_has_permission_or_403(request.user, test, Permissions.Note_Add)
if note_type_activation:
Expand Down

0 comments on commit fdbd57c

Please sign in to comment.