From e7b21549b277e35e4ee3fe1a65819583b11dec56 Mon Sep 17 00:00:00 2001 From: Arthur Date: Sun, 25 Jun 2023 12:02:21 -0700 Subject: [PATCH] 12589 validation error --- netbox/users/forms/model_forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netbox/users/forms/model_forms.py b/netbox/users/forms/model_forms.py index ed5c7f6c8..a96d08cc1 100644 --- a/netbox/users/forms/model_forms.py +++ b/netbox/users/forms/model_forms.py @@ -349,7 +349,7 @@ class ObjectPermissionForm(BootstrapMixin, forms.ModelForm): # At least one action must be specified if not self.cleaned_data['actions']: - raise ValidationError("At least one action must be selected.") + raise forms.ValidationError("At least one action must be selected.") # Validate the specified model constraints by attempting to execute a query. We don't care whether the query # returns anything; we just want to make sure the specified constraints are valid.