mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-25 08:46:10 -06:00
12589 validation error
This commit is contained in:
parent
b3b59a2e49
commit
e7b21549b2
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user