linter fixes

This commit is contained in:
matthewswspence 2025-03-13 12:19:58 -05:00
parent 48d025019f
commit 44da71b007
No known key found for this signature in database
GPG key ID: FB458202A7852BA4
4 changed files with 32 additions and 38 deletions

View file

@ -616,7 +616,8 @@ class PurposeDetailsForm(BaseDeletableRegistrarForm):
label="Purpose",
widget=forms.Textarea(
attrs={
"aria-label": "What is the purpose of your requested domain? Describe how youll use your .gov domain. \
"aria-label": "What is the purpose of your requested domain? \
Describe how youll use your .gov domain. \
Will it be used for a website, email, or something else?"
}
),
@ -873,28 +874,6 @@ class CisaRepresentativeYesNoForm(BaseYesNoForm):
field_name = "has_cisa_representative"
class PurposeDetailsForm(BaseDeletableRegistrarForm):
field_name = "purpose"
purpose = forms.CharField(
label="Purpose",
widget=forms.Textarea(
attrs={
"aria-label": "What is the purpose of your requested domain? Describe how youll use your .gov domain. \
Will it be used for a website, email, or something else?"
}
),
validators=[
MaxLengthValidator(
2000,
message="Response must be less than 2000 characters.",
)
],
error_messages={"required": "Describe how youll use the .gov domain youre requesting."},
)
class AnythingElseForm(BaseDeletableRegistrarForm):
anything_else = forms.CharField(
required=True,