@@ -270,6 +270,7 @@ class Meta:
270270 "community" ,
271271 "community_name" ,
272272 "wealth_group_category" ,
273+ "wealth_group_category_name" ,
273274 "percentage_of_households" ,
274275 "average_household_size" ,
275276 ]
@@ -296,6 +297,7 @@ def get_livelihood_zone_baseline_label(self, obj):
296297 source_organization_name = serializers .CharField (
297298 source = "livelihood_zone_baseline.source_organization.name" , read_only = True
298299 )
300+ wealth_group_category_name = serializers .CharField (source = "wealth_group_category.name" , read_only = True )
299301
300302
301303class BaselineWealthGroupSerializer (WealthGroupSerializer ):
@@ -1554,7 +1556,8 @@ class Meta:
15541556 "id" ,
15551557 "name" ,
15561558 "description" ,
1557- "wealth_group_category_code" ,
1559+ "wealth_group_category" ,
1560+ "wealth_group_category_name" ,
15581561 "main_livelihood_category" ,
15591562 "bss" ,
15601563 "currency" ,
@@ -1601,7 +1604,8 @@ def field_to_database_path(field_name):
16011604 "valid_to_date" : "valid_to_date" ,
16021605 "livelihood_strategy_pk" : "livelihood_strategies__pk" ,
16031606 "livelihood_activity_pk" : "livelihood_strategies__livelihoodactivity__pk" ,
1604- "wealth_group_category_code" : "livelihood_strategies__livelihoodactivity__wealth_group__wealth_group_category__code" , # NOQA: E501
1607+ "wealth_group_category" : "livelihood_strategies__livelihoodactivity__wealth_group__wealth_group_category__code" , # NOQA: E501
1608+ "wealth_group_category_name" : f"livelihood_strategies__livelihoodactivity__wealth_group__wealth_group_category__name_{ language_code } " , # NOQA: E501
16051609 "kcals_consumed" : "livelihood_strategies__livelihoodactivity__kcals_consumed" ,
16061610 "income" : "livelihood_strategies__livelihoodactivity__income" ,
16071611 "expenditure" : "livelihood_strategies__livelihoodactivity__expenditure" ,
0 commit comments