This commit is contained in:
zandercymatics 2025-02-03 15:36:45 -07:00
parent 8419d22f67
commit d14a23621e
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7

View file

@ -1302,6 +1302,7 @@ class DomainRequest(TimeStampedModel):
"""Unlocks the organization_contact step.""" """Unlocks the organization_contact step."""
if flag_is_active_anywhere("organization_feature") and flag_is_active_anywhere("organization_requests"): if flag_is_active_anywhere("organization_feature") and flag_is_active_anywhere("organization_requests"):
# Check if the current federal agency is an outlawed one # Check if the current federal agency is an outlawed one
if self.organization_type == self.OrganizationChoices.FEDERAL and self.federal_agency:
Portfolio = apps.get_model("registrar.Portfolio") Portfolio = apps.get_model("registrar.Portfolio")
return ( return (
FederalAgency.objects.exclude( FederalAgency.objects.exclude(
@ -1310,7 +1311,7 @@ class DomainRequest(TimeStampedModel):
.filter(agency=self.federal_agency) .filter(agency=self.federal_agency)
.exists() .exists()
) )
return ( return bool(
self.federal_agency is not None self.federal_agency is not None
or self.organization_name is not None or self.organization_name is not None
or self.address_line1 is not None or self.address_line1 is not None