diff --git a/changelog.d/3238.added.md b/changelog.d/3238.added.md new file mode 100644 index 0000000000..80e50da634 --- /dev/null +++ b/changelog.d/3238.added.md @@ -0,0 +1 @@ +Alert profiles filter match value dropdowns now support interactive value searches diff --git a/python/nav/web/alertprofiles/forms.py b/python/nav/web/alertprofiles/forms.py index 3c8090eace..f0b22dffcc 100644 --- a/python/nav/web/alertprofiles/forms.py +++ b/python/nav/web/alertprofiles/forms.py @@ -734,6 +734,7 @@ def __init__(self, *args, **kwargs): # At last we acctually add the multiple choice field. self.fields['value'] = forms.MultipleChoiceField(choices=choices) + self.fields['value'].widget.attrs['class'] = 'select2' else: self.fields['value'] = forms.CharField(required=True)