Fixed form state check

This commit is contained in:
CocoByte 2024-05-19 15:39:00 -06:00
parent 377cb30818
commit c5b841f6fb
No known key found for this signature in database
GPG key ID: BBFAA2526384C97F
2 changed files with 5 additions and 4 deletions

View file

@ -685,9 +685,9 @@ class CisaRepresentativeForm(BaseDeletableRegistrarForm):
email = forms.EmailField(
label="Email",
max_length=None,
required=False,
error_messages={
"invalid": ("Enter your email address in the required format, like name@example.com."),
"required": ("Enter the email address of your CISA regional representative."),
},
validators=[
MaxLengthValidator(