From 4a423f3949c49a41801d1d8fa2546ada8ecd4ce5 Mon Sep 17 00:00:00 2001 From: PCoder Date: Thu, 25 Nov 2021 14:07:45 +0530 Subject: [PATCH] Attempt correct field names in columns --- app/admin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/admin.py b/app/admin.py index de7a3bd..4b61ea4 100644 --- a/app/admin.py +++ b/app/admin.py @@ -50,8 +50,8 @@ class ResourceAdmin(admin.ModelAdmin): class RangeAdmin(admin.ModelAdmin): readonly_fields = ('id',) - search_fields = ['name', 'range_name', 'range_name_ascii', 'range_name_language', 'mother_range', 'feature', - 'level', 'level', 'level_1', 'level_2', 'level_3', 'peak_name', 'comments', 'source', + search_fields = ['name', 'range_name', 'range_name_ascii', 'language__range_name_language', 'range__mother_range', + 'feature', 'level', 'level', 'level_1', 'level_2', 'level_3', 'peak_name', 'comments', 'source', 'name_fr', 'name_de', 'name_es', 'name_pt', 'name_cn', 'name_ru', 'name_tr'] fieldsets = ( (None, {