From 026692b9b2eace90f5ea2f467b13f6ade4e9b160 Mon Sep 17 00:00:00 2001 From: PCoder Date: Mon, 22 Nov 2021 17:12:30 +0530 Subject: [PATCH] Fix search_field --- app/admin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/admin.py b/app/admin.py index 5de7556..ea78eb9 100644 --- a/app/admin.py +++ b/app/admin.py @@ -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):