From e086fcd9a29b153fe91752ff73a45bdd5352c19c Mon Sep 17 00:00:00 2001 From: Neil MartinsenBurrell Date: Mon, 30 Jan 2023 10:00:19 -0600 Subject: [PATCH] Simplify None/False logic Co-authored-by: Seamus Johnston --- src/registrar/models/domain_application.py | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/src/registrar/models/domain_application.py b/src/registrar/models/domain_application.py index 72a9b8f87..5618ebaed 100644 --- a/src/registrar/models/domain_application.py +++ b/src/registrar/models/domain_application.py @@ -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.