This commit is contained in:
zandercymatics 2024-04-15 12:28:26 -06:00
parent 09b4e7487b
commit 6e33dcfbe1
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7
2 changed files with 12 additions and 2 deletions

View file

@ -1172,7 +1172,17 @@ class DomainRequestAdmin(ListHeaderAdmin):
}, },
), ),
(".gov domain", {"fields": ["requested_domain", "alternative_domains"]}), (".gov domain", {"fields": ["requested_domain", "alternative_domains"]}),
("Contacts", {"fields": ["authorizing_official", "other_contacts", "no_other_contacts_rationale", "cisa_representative_email"]}), (
"Contacts",
{
"fields": [
"authorizing_official",
"other_contacts",
"no_other_contacts_rationale",
"cisa_representative_email",
]
},
),
("Background info", {"fields": ["purpose", "anything_else", "current_websites"]}), ("Background info", {"fields": ["purpose", "anything_else", "current_websites"]}),
( (
"Type of organization", "Type of organization",

View file

@ -1048,7 +1048,7 @@ class DomainRequest(TimeStampedModel):
def has_cisa_representative(self) -> bool: def has_cisa_representative(self) -> bool:
"""Does this domain request have cisa representative?""" """Does this domain request have cisa representative?"""
return self.cisa_representative_email != "" and self.cisa_representative_email is not None return self.cisa_representative_email != "" and self.cisa_representative_email is not None
def has_additional_details(self) -> bool: def has_additional_details(self) -> bool:
return self.has_anything_else_text() or self.has_cisa_representative() return self.has_anything_else_text() or self.has_cisa_representative()