From c70baad218e56de9bb60cb9e2d2d38647f81fd08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Ml=C3=A1dek?= Date: Tue, 14 Apr 2020 15:36:35 +0200 Subject: [PATCH] add status to admin table --- sdbs_pile/pile/admin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sdbs_pile/pile/admin.py b/sdbs_pile/pile/admin.py index 67f44d3..9e1ab6c 100644 --- a/sdbs_pile/pile/admin.py +++ b/sdbs_pile/pile/admin.py @@ -33,8 +33,8 @@ class DocumentExternalListFilter(admin.SimpleListFilter): class DocumentAdmin(admin.ModelAdmin): exclude = ('is_removed',) - list_display = ('title', 'author', 'published', 'has_file', 'public', 'filed_under') - list_filter = ('tags', 'public', DocumentExternalListFilter) + list_display = ('title', 'author', 'published', 'status', 'has_file', 'public', 'filed_under') + list_filter = ('tags','status', 'public', DocumentExternalListFilter) search_fields = ('title', 'author', 'published') actions = ('make_published', 'make_hidden')