Fix search fields for range

This commit is contained in:
PCoder 2021-11-26 19:12:58 +05:30
parent 6e20923688
commit 3030e84fea

View file

@ -81,8 +81,8 @@ class ResourceAdmin(admin.ModelAdmin):
class RangeAdmin(admin.ModelAdmin):
readonly_fields = ('id',)
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',
search_fields = ['name', 'range_name', 'range_name_ascii',
'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, {