updated error messages

This commit is contained in:
David Kennedy 2024-10-02 19:11:12 -04:00
parent 2f009ee15c
commit bb3ceb4dea
No known key found for this signature in database
GPG key ID: 6528A5386E66B96B
9 changed files with 15 additions and 14 deletions

View file

@ -137,10 +137,10 @@ class OrganizationContactForm(RegistrarForm):
validators=[
RegexValidator(
"^[0-9]{5}(?:-[0-9]{4})?$|^$",
message="Enter a zip code in the form of 12345 or 12345-6789.",
message="Enter a 5-digit or 9-digit ZIP code, like 12345 or 12345-6789.",
)
],
error_messages={"required": ("Enter a zip code in the form of 12345 or 12345-6789.")},
error_messages={"required": ("Enter a 5-digit or 9-digit ZIP code, like 12345 or 12345-6789.")},
)
urbanization = forms.CharField(
required=False,
@ -603,7 +603,7 @@ class CisaRepresentativeForm(BaseDeletableRegistrarForm):
max_length=None,
required=False,
error_messages={
"invalid": ("Enter your representatives email address in the required format, like name@example.com."),
"invalid": ("Enter an email address in the required format, like name@example.com."),
},
validators=[
MaxLengthValidator(