mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-14 13:34:10 +02:00
Merge branch 'ms/3212-FEB-purpose-questions' into ms/3212-FEB-questions
This commit is contained in:
commit
10d3225cc0
5 changed files with 30 additions and 54 deletions
|
@ -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?
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue