Fix lint errors

This commit is contained in:
Erin 2023-11-20 15:04:31 -08:00
parent 060ed33344
commit e952d6a9cf
No known key found for this signature in database
GPG key ID: 1CAD275313C62460

View file

@ -147,7 +147,7 @@ class ContactForm(forms.ModelForm):
for field_name in self.required:
self.fields[field_name].required = True
# Set custom error messages
self.fields["first_name"].error_messages = {'required': 'Enter your first name / given name.'}
self.fields["last_name"].error_messages = {'required': 'Enter your last name / family name.'}
@ -159,6 +159,7 @@ class ContactForm(forms.ModelForm):
}
self.fields["phone"].error_messages = {'required': 'Enter your phone number.'}
class AuthorizingOfficialContactForm(ContactForm):
"""Form for updating authorizing official contacts."""
def __init__(self, *args, **kwargs):