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