From 5b5cf22bf0a6acd75c09f34dbafaea00b3876444 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Wed, 15 Jan 2020 15:47:51 +0100 Subject: [PATCH] Admin: filter books by print on demand. --- src/catalogue/admin.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/catalogue/admin.py b/src/catalogue/admin.py index 88377e79d..adc2eaf74 100644 --- a/src/catalogue/admin.py +++ b/src/catalogue/admin.py @@ -30,6 +30,7 @@ class BookAdmin(admin.ModelAdmin): list_display = ( 'title', 'slug', 'created_at', 'has_epub_file', 'has_html_file', 'has_description', ) + list_filter = ['print_on_demand'] search_fields = ('title',) ordering = ('title',) -- 2.20.1