Skip to content

Commit 24886d8

Browse files
authored
Merge pull request #148 from FEWS-NET/HEA-626/Searching_for_wealth_group_data_results_in_500_error
Fix WealthGroupAdmin search_fields see HEA-626
2 parents f6c92a4 + 0d7c7ae commit 24886d8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

apps/baseline/admin.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -767,7 +767,8 @@ class WealthGroupAdmin(admin.ModelAdmin):
767767
)
768768
search_fields = (
769769
"community__name",
770-
"wealth_group_category",
770+
"wealth_group_category__code__iexact",
771+
*translation_fields("wealth_group_category__name"),
771772
)
772773
list_filter = (
773774
"livelihood_zone_baseline__source_organization",

0 commit comments

Comments
 (0)