This commit is contained in:
David Kennedy 2024-01-02 18:31:36 -05:00
parent 0cada58c23
commit 55f9792b32
No known key found for this signature in database
GPG key ID: 6528A5386E66B96B
4 changed files with 60 additions and 4 deletions

View file

@ -835,6 +835,17 @@ class DomainApplication(TimeStampedModel):
"""Show this step if the other contacts are blank."""
return not self.other_contacts.exists()
def has_other_contacts(self) -> bool:
"""Does this application have other contacts listed?"""
return self.other_contacts.exists()
# def __setattr__(self, name, value):
# # Check if the attribute exists in the class
# if not hasattr(self, name):
# logger.info(f"{self.__class__.__name__} object has no attribute '{name}'")
# # If the attribute exists, set its value
# super().__setattr__(name, value)
def is_federal(self) -> Union[bool, None]:
"""Is this application for a federal agency?