Merge branch 'ms/3212-FEB-purpose-questions' into ms/3212-FEB-questions

This commit is contained in:
matthewswspence 2025-03-11 11:25:02 -05:00
commit 10d3225cc0
No known key found for this signature in database
GPG key ID: FB458202A7852BA4
5 changed files with 30 additions and 54 deletions

View file

@ -1449,13 +1449,9 @@ class DomainRequest(TimeStampedModel):
def is_feb(self) -> bool:
"""Is this domain request for a Federal Executive Branch agency?"""
if not self.generic_org_type:
# generic_org_type is either blank or None, assume no
return False
if self.generic_org_type == DomainRequest.OrganizationChoices.FEDERAL:
return self.federal_type == BranchChoices.EXECUTIVE
if self.portfolio:
return self.portfolio.federal_type == BranchChoices.EXECUTIVE
return False
def is_federal(self) -> Union[bool, None]:
"""Is this domain request for a federal agency?