Merge branch 'main' into hotgov/2355-rejection-reason-emails

This commit is contained in:
zandercymatics 2024-10-07 09:17:12 -06:00
commit 5fc8d0d7e1
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7
69 changed files with 2626 additions and 759 deletions

View file

@ -55,11 +55,9 @@ def get_federal_and_portfolio_types_from_federal_agency_json(request):
portfolio_type = None
agency_name = request.GET.get("agency_name")
organization_type = request.GET.get("organization_type")
agency = FederalAgency.objects.filter(agency=agency_name).first()
if agency:
federal_type = Portfolio.get_federal_type(agency)
portfolio_type = Portfolio.get_portfolio_type(organization_type, federal_type)
federal_type = BranchChoices.get_branch_label(federal_type) if federal_type else "-"
response_data = {