mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-04 00:42:16 +02:00
Fix lint errors
This commit is contained in:
parent
060ed33344
commit
e952d6a9cf
1 changed files with 2 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue