mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-20 19:39:23 +02:00
Fix for phone number not raising invalid message in domain management
This commit is contained in:
parent
2f32ed9d8a
commit
bd0f0bb2d6
1 changed files with 2 additions and 2 deletions
|
@ -190,7 +190,7 @@ class ContactForm(forms.ModelForm):
|
||||||
self.fields["email"].error_messages = {
|
self.fields["email"].error_messages = {
|
||||||
"required": "Enter your email address in the required format, like name@example.com."
|
"required": "Enter your email address in the required format, like name@example.com."
|
||||||
}
|
}
|
||||||
self.fields["phone"].error_messages = {"required": "Enter your phone number."}
|
self.fields["phone"].error_messages["required"] = "Enter your phone number."
|
||||||
|
|
||||||
|
|
||||||
class AuthorizingOfficialContactForm(ContactForm):
|
class AuthorizingOfficialContactForm(ContactForm):
|
||||||
|
@ -213,7 +213,7 @@ class AuthorizingOfficialContactForm(ContactForm):
|
||||||
self.fields["email"].error_messages = {
|
self.fields["email"].error_messages = {
|
||||||
"required": "Enter an email address in the required format, like name@example.com."
|
"required": "Enter an email address in the required format, like name@example.com."
|
||||||
}
|
}
|
||||||
self.fields["phone"].error_messages = {"required": "Enter a phone number for your authorizing official."}
|
self.fields["phone"].error_messages["required"] = "Enter a phone number for your authorizing official."
|
||||||
|
|
||||||
|
|
||||||
class DomainSecurityEmailForm(forms.Form):
|
class DomainSecurityEmailForm(forms.Form):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue