From c14cdb06edf83420e08c02a9973f9dcae4f14542 Mon Sep 17 00:00:00 2001 From: PCoder Date: Mon, 22 Nov 2021 16:32:59 +0530 Subject: [PATCH] More fixes list_display --- app/admin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/admin.py b/app/admin.py index 9443333..5de7556 100644 --- a/app/admin.py +++ b/app/admin.py @@ -173,8 +173,8 @@ class PeopleRangeAdmin(admin.ModelAdmin): class PeopleResourceAdmin(admin.ModelAdmin): fields = ('person', 'resource', 'p_r_role') - list_display = ['person__full_name', 'resource__resource', 'role__role'] - search_fields = ['person', 'resource', 'role'] + list_display = ['person', 'resource', 'role'] + search_fields = ['person__full_name', 'resource', 'role'] class SpeciesRangeAdmin(admin.ModelAdmin):