This commit is contained in:
CocoByte 2024-06-13 16:39:17 -06:00
parent 2a90335499
commit 1dfc68ce47
No known key found for this signature in database
GPG key ID: BBFAA2526384C97F
5 changed files with 14 additions and 19 deletions

View file

@ -2490,12 +2490,11 @@ class PortfolioAdmin(ListHeaderAdmin):
is_federal = obj.organization_type == DomainRequest.OrganizationChoices.FEDERAL
if is_federal:
obj.organization_name = obj.organization_type
#NOTE: What is meant by "federal agency text name?"
# NOTE: What is meant by "federal agency text name?"
super().save_model(request, obj, form, change)
class FederalAgencyAdmin(ListHeaderAdmin):
list_display = ["agency"]
search_fields = ["agency"]