mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-17 18:09:25 +02:00
Fix js, linting
This commit is contained in:
parent
4edb6ea988
commit
e581d3b2ca
3 changed files with 20 additions and 16 deletions
|
@ -1103,7 +1103,14 @@ class DomainRequest(TimeStampedModel):
|
|||
return self.other_contacts.exists()
|
||||
|
||||
def has_additional_details(self) -> bool:
|
||||
return self.has_anything_else_text() or self.has_cisa_representative
|
||||
"""Combines the has_anything_else_text and has_cisa_representative fields,
|
||||
then returns if this domain request has either of them."""
|
||||
# Split out for linter
|
||||
has_details = False
|
||||
if self.has_anything_else_text or self.has_cisa_representative:
|
||||
has_details = True
|
||||
|
||||
return has_details
|
||||
|
||||
def is_federal(self) -> Union[bool, None]:
|
||||
"""Is this domain request for a federal agency?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue