This commit is contained in:
CocoByte 2024-04-11 14:04:15 -06:00
parent 81f6e3e389
commit 44c74c7c86
No known key found for this signature in database
GPG key ID: BBFAA2526384C97F
3 changed files with 25 additions and 13 deletions

View file

@ -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?