Skip to content

Commit 0d7c7ae

Browse files
committed
Fix WealthGroupAdmin search_fields see HEA-626
1 parent f6c92a4 commit 0d7c7ae

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)