Skip to content

Commit 81fcc07

Browse files
author
mawn
committed
fix #338: missing tags in "Update Finding Template" and "Create Findings from Template"-function
1 parent 8bb70e0 commit 81fcc07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dojo/forms.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -781,7 +781,7 @@ class FindingTemplateForm(forms.ModelForm):
781781
'invalid_choice': 'Select valid choice: Critical,High,Medium,Low'})
782782

783783
def __init__(self, *args, **kwargs):
784-
tags = Tag.objects.usage_for_model(Finding)
784+
tags = Tag.objects.usage_for_model(Finding_Template)
785785
t = [(tag.name, tag.name) for tag in tags]
786786
super(FindingTemplateForm, self).__init__(*args, **kwargs)
787787
self.fields['tags'].widget.choices = t

0 commit comments

Comments
 (0)