mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-31 09:43:54 +02:00
wip
This commit is contained in:
parent
0cada58c23
commit
55f9792b32
4 changed files with 60 additions and 4 deletions
|
@ -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?
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue