From a0fdd6879fcb704231614b196c581889bd82892a Mon Sep 17 00:00:00 2001 From: Ema Ciupe <96191846+emaciupe@users.noreply.github.com> Date: Mon, 20 Mar 2023 18:50:08 +0200 Subject: [PATCH] [ch33320] fix on intervention-activity loader error (#273) --- .../apps/mart/data/models/intervention_activity.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/etools_datamart/apps/mart/data/models/intervention_activity.py b/src/etools_datamart/apps/mart/data/models/intervention_activity.py index b7a32fc9f..7082a7fde 100644 --- a/src/etools_datamart/apps/mart/data/models/intervention_activity.py +++ b/src/etools_datamart/apps/mart/data/models/intervention_activity.py @@ -38,7 +38,15 @@ class Meta: class Options: source = ReportsInterventionactivityitem depends = (Intervention,) - mapping = dict() + mapping = dict( + activity='activity.name', + activity_details='activity.context_details', + activity_unicef_cash='activity.unicef_cash', + activity_cso_cash='activity.cso_cash', + activity_code='activity.code', + ll_name='activity.result.name', + ll_code='activity.result.code' + ) queryset = lambda: ReportsInterventionactivityitem.objects.select_related( 'activity__result__result_link__intervention__agreement__partner' )