Skip to content

Commit

Permalink
Update domain_request.py
Browse files Browse the repository at this point in the history
  • Loading branch information
zandercymatics committed Oct 30, 2024
1 parent dfb59a6 commit 4f1febf
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions src/registrar/models/domain_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -1127,7 +1127,10 @@ def reject_with_prejudice(self):

def requesting_entity_is_portfolio(self) -> bool:
"""Determines if this record is requesting that a portfolio be their organization."""
return self.portfolio and self.organization_name == self.portfolio.organization_name
if self.portfolio and self.organization_name == self.portfolio.organization_name:
return True
else:
return False

def requesting_entity_is_suborganization(self) -> bool:
"""Used to determine if this domain request is also requesting that it be tied to a suborganization.
Expand All @@ -1152,9 +1155,11 @@ def is_requesting_new_suborganization(self) -> bool:
# If a suborganization already exists, it can't possibly be a new one
if self.sub_organization:
return False
return bool(
self.requested_suborganization and self.suborganization_city and self.suborganization_state_territory
)

if self.requested_suborganization and self.suborganization_city and self.suborganization_state_territory:
return True
else:
return False

# ## Form unlocking steps ## #
#
Expand Down

0 comments on commit 4f1febf

Please sign in to comment.