locale: add lazy translations to missing ValidationErrors

This commit is contained in:
Herculino Trotta committed 2025-01-04 18:17:06 -03:00
1 parent 3c0a2d82ac
commit 5ccb9ff152
4 files changed
+12 -10

No files matched your search

+1 -1
View File
@@ -327,7 +327,7 @@ class TransferForm(forms.Form):
to_account = cleaned_data.get("to_account")
if from_account == to_account:
raise forms.ValidationError("From and To accounts must be different.")
raise forms.ValidationError(_("From and To accounts must be different."))
return cleaned_data