mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-17 18:09:25 +02:00
linted
This commit is contained in:
parent
b619535673
commit
6a7da08dbc
6 changed files with 8 additions and 11 deletions
|
@ -1457,7 +1457,7 @@ class DomainRequestAdmin(ListHeaderAdmin, ImportExportModelAdmin):
|
||||||
"cisa_representative_first_name",
|
"cisa_representative_first_name",
|
||||||
"cisa_representative_last_name",
|
"cisa_representative_last_name",
|
||||||
"cisa_representative_email",
|
"cisa_representative_email",
|
||||||
]
|
]
|
||||||
autocomplete_fields = [
|
autocomplete_fields = [
|
||||||
"approved_domain",
|
"approved_domain",
|
||||||
"requested_domain",
|
"requested_domain",
|
||||||
|
|
|
@ -671,7 +671,6 @@ class CisaRepresentativeForm(BaseDeletableRegistrarForm):
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class CisaRepresentativeYesNoForm(BaseYesNoForm):
|
class CisaRepresentativeYesNoForm(BaseYesNoForm):
|
||||||
"""Yes/no toggle for the CISA regions question on additional details"""
|
"""Yes/no toggle for the CISA regions question on additional details"""
|
||||||
|
|
||||||
|
|
|
@ -895,9 +895,9 @@ def completed_domain_request( # noqa
|
||||||
if has_alternative_gov_domain:
|
if has_alternative_gov_domain:
|
||||||
domain_request.alternative_domains.add(alt)
|
domain_request.alternative_domains.add(alt)
|
||||||
if has_cisa_representative:
|
if has_cisa_representative:
|
||||||
domain_request.cisa_representative_first_name="CISA-first-name"
|
domain_request.cisa_representative_first_name = "CISA-first-name"
|
||||||
domain_request.cisa_representative_last_name="CISA-last-name"
|
domain_request.cisa_representative_last_name = "CISA-last-name"
|
||||||
domain_request.cisa_representative_email="cisaRep@igorville.gov"
|
domain_request.cisa_representative_email = "cisaRep@igorville.gov"
|
||||||
|
|
||||||
return domain_request
|
return domain_request
|
||||||
|
|
||||||
|
|
|
@ -2264,8 +2264,7 @@ class TestDomainRequestAdmin(MockEppLib):
|
||||||
"anything_else",
|
"anything_else",
|
||||||
"has_anything_else_text",
|
"has_anything_else_text",
|
||||||
"cisa_representative_first_name",
|
"cisa_representative_first_name",
|
||||||
"cisa_representative_last_name,"
|
"cisa_representative_last_name," "cisa_representative_email",
|
||||||
"cisa_representative_email",
|
|
||||||
"has_cisa_representative",
|
"has_cisa_representative",
|
||||||
"is_policy_acknowledged",
|
"is_policy_acknowledged",
|
||||||
"submission_date",
|
"submission_date",
|
||||||
|
@ -2299,8 +2298,7 @@ class TestDomainRequestAdmin(MockEppLib):
|
||||||
"anything_else",
|
"anything_else",
|
||||||
"is_policy_acknowledged",
|
"is_policy_acknowledged",
|
||||||
"cisa_representative_first_name",
|
"cisa_representative_first_name",
|
||||||
"cisa_representative_last_name,"
|
"cisa_representative_last_name," "cisa_representative_email",
|
||||||
"cisa_representative_email",
|
|
||||||
]
|
]
|
||||||
|
|
||||||
self.assertEqual(readonly_fields, expected_fields)
|
self.assertEqual(readonly_fields, expected_fields)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue