This commit is contained in:
CocoByte 2024-05-31 15:51:55 -06:00
parent b619535673
commit 6a7da08dbc
No known key found for this signature in database
GPG key ID: BBFAA2526384C97F
6 changed files with 8 additions and 11 deletions

View file

@ -1457,7 +1457,7 @@ class DomainRequestAdmin(ListHeaderAdmin, ImportExportModelAdmin):
"cisa_representative_first_name",
"cisa_representative_last_name",
"cisa_representative_email",
]
]
autocomplete_fields = [
"approved_domain",
"requested_domain",

View file

@ -671,7 +671,6 @@ class CisaRepresentativeForm(BaseDeletableRegistrarForm):
)
class CisaRepresentativeYesNoForm(BaseYesNoForm):
"""Yes/no toggle for the CISA regions question on additional details"""

View file

@ -219,7 +219,7 @@ class DomainInformation(TimeStampedModel):
verbose_name="CISA regional representative first name",
db_index=True,
)
cisa_representative_last_name = models.CharField(
null=True,
blank=True,

View file

@ -470,7 +470,7 @@ class DomainRequest(TimeStampedModel):
verbose_name="CISA regional representative first name",
db_index=True,
)
cisa_representative_last_name = models.CharField(
null=True,
blank=True,

View file

@ -895,9 +895,9 @@ def completed_domain_request( # noqa
if has_alternative_gov_domain:
domain_request.alternative_domains.add(alt)
if has_cisa_representative:
domain_request.cisa_representative_first_name="CISA-first-name"
domain_request.cisa_representative_last_name="CISA-last-name"
domain_request.cisa_representative_email="cisaRep@igorville.gov"
domain_request.cisa_representative_first_name = "CISA-first-name"
domain_request.cisa_representative_last_name = "CISA-last-name"
domain_request.cisa_representative_email = "cisaRep@igorville.gov"
return domain_request

View file

@ -2264,8 +2264,7 @@ class TestDomainRequestAdmin(MockEppLib):
"anything_else",
"has_anything_else_text",
"cisa_representative_first_name",
"cisa_representative_last_name,"
"cisa_representative_email",
"cisa_representative_last_name," "cisa_representative_email",
"has_cisa_representative",
"is_policy_acknowledged",
"submission_date",
@ -2299,8 +2298,7 @@ class TestDomainRequestAdmin(MockEppLib):
"anything_else",
"is_policy_acknowledged",
"cisa_representative_first_name",
"cisa_representative_last_name,"
"cisa_representative_email",
"cisa_representative_last_name," "cisa_representative_email",
]
self.assertEqual(readonly_fields, expected_fields)