mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-30 04:53:09 +02:00
Update populate_requested_suborg.py
This commit is contained in:
parent
8e7ffab8b2
commit
4fceb62c43
1 changed files with 6 additions and 1 deletions
|
@ -22,7 +22,12 @@ class Command(BaseCommand, PopulateScriptTemplate):
|
||||||
Also excludes approved."""
|
Also excludes approved."""
|
||||||
return records.exclude(
|
return records.exclude(
|
||||||
organization_name__iexact=F("portfolio__organization_name"),
|
organization_name__iexact=F("portfolio__organization_name"),
|
||||||
status=DomainRequest.DomainRequestStatus.APPROVED,
|
status__in=[
|
||||||
|
DomainRequest.DomainRequestStatus.APPROVED,
|
||||||
|
DomainRequest.DomainRequestStatus.REJECTED,
|
||||||
|
DomainRequest.DomainRequestStatus.INELIGIBLE,
|
||||||
|
DomainRequest.DomainRequestStatus.STARTED,
|
||||||
|
],
|
||||||
)
|
)
|
||||||
|
|
||||||
def update_record(self, record: DomainRequest):
|
def update_record(self, record: DomainRequest):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue