From a5b7d92ec2b3495ecf2a68c0a66a64b14fa23da7 Mon Sep 17 00:00:00 2001 From: corsaronero Date: Thu, 3 Nov 2022 17:02:39 +0000 Subject: [PATCH] full search and display fields for Projects, Services also added fields --- input/admin.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/input/admin.py b/input/admin.py index 544b531..55d5cc8 100644 --- a/input/admin.py +++ b/input/admin.py @@ -29,11 +29,16 @@ admin.site.add_action(export_as_csv) @admin.register(Project) class ProjectAdmin(admin.ModelAdmin): save_as = True - search_fields = ('name', 'pid','finance_id', 'start', 'end', 'participants_estimated', 'participants_real', 'cost', 'status') - list_display = ('name', 'pid','finance_id', 'start', 'end', 'participants_estimated', 'participants_real', 'cost', 'status') + search_fields = ('name', 'pid','finance_id', 'realname', 'start', 'end', 'participants_estimated', 'participants_real', 'cost', 'status') + list_display = ('name', 'pid','finance_id', 'realname', 'start', 'end', 'participants_estimated', 'participants_real', 'cost', 'status') # action = ['export_as_csv'] - +@admin.register(BusinessCard) +class BusinessCardAdmin(admin.ModelAdmin): + save_as = True + search_fields = ('realname', 'service_id', 'granted', 'granted_date', 'project') + list_display = ('realname', 'service_id', 'granted', 'granted_date', 'project') + # action = ['export_as_csv'] admin.site.register([ Account, @@ -42,7 +47,6 @@ admin.site.register([ IFG, Travel, Email, - BusinessCard, List, Literature, ])