Make sure phone number for AO is not required

This commit is contained in:
Rebecca Hsieh 2023-12-18 17:32:27 -08:00
parent b8e12bc68b
commit 96390a6de2
No known key found for this signature in database

View file

@ -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."