mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-30 06:26:34 +02:00
lint and fix test
This commit is contained in:
parent
8504eb1f39
commit
ad79557a55
5 changed files with 23 additions and 32 deletions
|
@ -367,7 +367,7 @@ class OrganizationContactForm(RegistrarForm):
|
|||
|
||||
def __init__(self, *args, **kwargs):
|
||||
super().__init__(*args, **kwargs)
|
||||
|
||||
|
||||
# Set the queryset for federal agency.
|
||||
# If the organization_requests flag is active, we hide data that exists in portfolios.
|
||||
federal_agency_queryset = FederalAgency.objects.exclude(agency__in=self.excluded_agencies)
|
||||
|
@ -376,7 +376,7 @@ class OrganizationContactForm(RegistrarForm):
|
|||
federal_agency_queryset = federal_agency_queryset.exclude(
|
||||
agency__in=Portfolio.objects.values_list("organization_name", flat=True)
|
||||
)
|
||||
|
||||
|
||||
self.fields["federal_agency"].queryset = federal_agency_queryset
|
||||
|
||||
def clean_federal_agency(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue