12589 validation error

This commit is contained in:
Arthur 2023-06-25 12:02:21 -07:00
parent b3b59a2e49
commit e7b21549b2

View File

@ -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.