diff --git a/python/nav/web/alertprofiles/forms.py b/python/nav/web/alertprofiles/forms.py index 1783ecf59d..fb667b6176 100644 --- a/python/nav/web/alertprofiles/forms.py +++ b/python/nav/web/alertprofiles/forms.py @@ -657,7 +657,7 @@ def clean(self) -> Dict[str, Any]: if operator_type == Operator.IN: validated_data["value"] = "|".join(value) - elif operator_type == Operator.EQUALS: + elif operator_type == Operator.EQUALS and isinstance(value, list): validated_data["value"] = value[0] return validated_data