This commit is contained in:
CocoByte 2024-07-11 16:26:11 -06:00
parent 5e8e94622a
commit 6b80da0189
No known key found for this signature in database
GPG key ID: BBFAA2526384C97F

View file

@ -2689,6 +2689,7 @@ class PortfolioAdmin(ListHeaderAdmin):
obj.organization_name = obj.federal_agency.agency obj.organization_name = obj.federal_agency.agency
super().save_model(request, obj, form, change) super().save_model(request, obj, form, change)
class FederalAgencyResource(resources.ModelResource): class FederalAgencyResource(resources.ModelResource):
"""defines how each field in the referenced model should be mapped to the corresponding fields in the """defines how each field in the referenced model should be mapped to the corresponding fields in the
import/export file""" import/export file"""