mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-17 10:07:04 +02:00
Update src/registrar/admin.py
Co-authored-by: zandercymatics <141044360+zandercymatics@users.noreply.github.com>
This commit is contained in:
parent
767fc4a2ff
commit
2c96eebc6f
1 changed files with 2 additions and 2 deletions
|
@ -2572,8 +2572,8 @@ class PortfolioAdmin(ListHeaderAdmin):
|
|||
# org name and it is a federal organization, have this field fill with
|
||||
# the federal agency text name.
|
||||
is_federal = obj.organization_type == DomainRequest.OrganizationChoices.FEDERAL
|
||||
if is_federal:
|
||||
obj.organization_name = obj.organization_type
|
||||
if is_federal and obj.organization_name is None:
|
||||
obj.organization_name = obj.federal_agency.agency
|
||||
# NOTE: What is meant by "federal agency text name?"
|
||||
|
||||
super().save_model(request, obj, form, change)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue