Update populate_requested_suborg.py

This commit is contained in:
zandercymatics 2025-01-06 14:17:33 -07:00
parent 8e7ffab8b2
commit 4fceb62c43
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7

View file

@ -22,7 +22,12 @@ class Command(BaseCommand, PopulateScriptTemplate):
Also excludes approved."""
return records.exclude(
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):