From 4fceb62c434b41da8bee79c8f55560d3423bb471 Mon Sep 17 00:00:00 2001 From: zandercymatics <141044360+zandercymatics@users.noreply.github.com> Date: Mon, 6 Jan 2025 14:17:33 -0700 Subject: [PATCH] Update populate_requested_suborg.py --- .../management/commands/populate_requested_suborg.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/registrar/management/commands/populate_requested_suborg.py b/src/registrar/management/commands/populate_requested_suborg.py index 2fdb14ac2..580d1cdbc 100644 --- a/src/registrar/management/commands/populate_requested_suborg.py +++ b/src/registrar/management/commands/populate_requested_suborg.py @@ -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):