mirror of
https://github.com/netbox-community/netbox.git
synced 2025-09-06 06:13:36 -06:00
Fix wrong field used in ValidationError
This commit is contained in:
parent
126e45c1f2
commit
4ee304468e
@ -52,7 +52,7 @@ class ScopedForm(forms.Form):
|
||||
scope_type = self.cleaned_data.get('scope_type')
|
||||
if scope_type and not scope:
|
||||
raise ValidationError({
|
||||
'scope_id': _(
|
||||
'scope': _(
|
||||
"Please select a {scope_type}."
|
||||
).format(scope_type=scope_type.model_class()._meta.model_name)
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user