mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-04 17:01:56 +02:00
Make sure phone number for AO is not required
This commit is contained in:
parent
b8e12bc68b
commit
96390a6de2
1 changed files with 3 additions and 0 deletions
|
@ -213,6 +213,9 @@ class AuthorizingOfficialContactForm(ContactForm):
|
|||
def __init__(self, *args, **kwargs):
|
||||
super().__init__(*args, **kwargs)
|
||||
|
||||
# Overriding bc phone not required in this form
|
||||
self.fields["phone"] = forms.IntegerField(required=False)
|
||||
|
||||
# Set custom error messages
|
||||
self.fields["first_name"].error_messages = {
|
||||
"required": "Enter the first name / given name of your authorizing official."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue