Fix search_field

This commit is contained in:
PCoder 2021-11-22 17:12:30 +05:30
parent c14cdb06ed
commit 026692b9b2

View file

@ -174,7 +174,7 @@ class PeopleRangeAdmin(admin.ModelAdmin):
class PeopleResourceAdmin(admin.ModelAdmin):
fields = ('person', 'resource', 'p_r_role')
list_display = ['person', 'resource', 'role']
search_fields = ['person__full_name', 'resource', 'role']
search_fields = ['person__full_name', 'resource__title', 'p_r_role__role']
class SpeciesRangeAdmin(admin.ModelAdmin):