Remove portfolio type field

Move portfolio org, rename to organization name, move sections, hide organization name if federal
This commit is contained in:
zandercymatics 2024-09-25 08:52:52 -06:00
parent 45479e86c7
commit ab35657147
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7
7 changed files with 58 additions and 71 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 = agency.federal_type
portfolio_type = Portfolio.get_portfolio_type(organization_type, federal_type)
federal_type = Portfolio.get_federal_type(agency)
federal_type = BranchChoices.get_branch_label(federal_type) if federal_type else "-"
response_data = {