Fix bug with both org name and suborg

This commit is contained in:
zandercymatics 2024-10-30 09:25:23 -06:00
parent d0aff60db0
commit b09e0cad4b
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7

View file

@ -152,13 +152,13 @@ class RequestingEntityYesNoForm(BaseYesNoForm):
Determines the initial checked state of the form based on the domain_request's attributes.
"""
if (
if self.domain_request.is_suborganization():
return True
elif (
self.domain_request.portfolio
and self.domain_request.organization_name == self.domain_request.portfolio.organization_name
):
return False
elif self.domain_request.is_suborganization():
return True
else:
return None