From 9311a41ac6ee5d883f58d0b548d1cc3841f9bf04 Mon Sep 17 00:00:00 2001 From: Rebecca Hsieh Date: Tue, 7 May 2024 16:31:01 -0700 Subject: [PATCH] Exclude 2 values from the domain request on the form --- src/registrar/forms/domain_request_wizard.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/registrar/forms/domain_request_wizard.py b/src/registrar/forms/domain_request_wizard.py index 9d16a30de..0e9e87f9d 100644 --- a/src/registrar/forms/domain_request_wizard.py +++ b/src/registrar/forms/domain_request_wizard.py @@ -97,6 +97,7 @@ class OrganizationElectionForm(RegistrarForm): class OrganizationContactForm(RegistrarForm): # for federal agencies we also want to know the top-level agency. + excluded_agencies = ["gov Administration", "Non-Federal Agency"] federal_agency = forms.ModelChoiceField( label="Federal agency", # not required because this field won't be filled out unless @@ -104,9 +105,8 @@ class OrganizationContactForm(RegistrarForm): # if it has been filled in when required. # uncomment to see if modelChoiceField can be an arg later required=False, - queryset=FederalAgency.objects.all(), + queryset=FederalAgency.objects.exclude(agency__in=excluded_agencies), empty_label="--Select--", - # choices=[("", "--Select--")] + DomainRequest.AGENCY_CHOICES, ) organization_name = forms.CharField( label="Organization name",