mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-06-09 22:14:43 +02:00
Simplify None/False logic
Co-authored-by: Seamus Johnston <seamus.johnston@gsa.gov>
This commit is contained in:
parent
e9b678e879
commit
e086fcd9a2
1 changed files with 4 additions and 11 deletions
|
@ -500,17 +500,10 @@ class DomainApplication(TimeStampedModel):
|
|||
user_choice = self.organization_type
|
||||
if user_choice == DomainApplication.OrganizationChoices.TRIBAL:
|
||||
# did answer tribal, check the recognition answers
|
||||
if (
|
||||
self.federally_recognized_tribe is not None
|
||||
and self.state_recognized_tribe is not None
|
||||
):
|
||||
# have answered these questions
|
||||
if (
|
||||
not self.federally_recognized_tribe
|
||||
and not self.state_recognized_tribe
|
||||
):
|
||||
return True
|
||||
return False
|
||||
return (
|
||||
self.federally_recognized_tribe == False
|
||||
and self.state_recognized_tribe == False
|
||||
)
|
||||
|
||||
def show_organization_election(self) -> bool:
|
||||
"""Show this step if the answer to the first question implies it.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue