mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-17 18:09:25 +02:00
Linting
This commit is contained in:
parent
09b4e7487b
commit
6e33dcfbe1
2 changed files with 12 additions and 2 deletions
|
@ -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",
|
||||||
|
|
|
@ -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()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue