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
81f6e3e389
commit
44c74c7c86
3 changed files with 25 additions and 13 deletions
|
@ -1037,14 +1037,14 @@ class DomainRequest(TimeStampedModel):
|
|||
def has_other_contacts(self) -> bool:
|
||||
"""Does this domain request have other contacts listed?"""
|
||||
return self.other_contacts.exists()
|
||||
|
||||
|
||||
def has_anything_else_text(self) -> bool:
|
||||
"""Does this domain request have an 'anything else?' entry"""
|
||||
return self.anything_else != "" and self.anything_else != None #TODO-NL: how to handle falsy strings again?
|
||||
|
||||
return self.anything_else != "" and self.anything_else is not None
|
||||
|
||||
def has_cisa_representative(self) -> bool:
|
||||
"""Does this domain request have cisa representative?"""
|
||||
return self.cisa_representative_email != "" and self.cisa_representative_email != None
|
||||
return self.cisa_representative_email != "" and self.cisa_representative_email is not None
|
||||
|
||||
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