Fix typos

This commit is contained in:
Raphael Michel
2026-08-24 17:26:37 +02:00
parent 9f8ba28cda
commit b74371bef1
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -742,9 +742,9 @@ class RelativeDateField(RelativeDateTimeField):
if data.rel_days_number is None or not data.rel_days_relationto:
raise ValidationError(self.error_messages['incomplete'])
elif data.rel_days_relation == "before" and not choice.supports_before:
raise ValidationError(_("A relative date cannot be expressed as 'before' for '{}'".format(choice.text)))
raise ValidationError(_('A relative date cannot be expressed as "before" for "{}"'.format(choice.text)))
elif data.rel_days_relation == "after" and not choice.supports_after:
raise ValidationError(_("A relative date cannot be expressed as 'after' for '{}'".format(choice.text)))
raise ValidationError(_('A relative date cannot be expressed as "after" for "{}"'.format(choice.text)))
return forms.MultiValueField.clean(self, value)