Fix wrong field used in ValidationError

This commit is contained in:
Jason Novinger 2025-09-05 09:43:46 -05:00
parent 126e45c1f2
commit 4ee304468e

View File

@ -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)
}) })