From: Radek Czajka Date: Wed, 15 Jan 2020 14:47:51 +0000 (+0100) Subject: Admin: filter books by print on demand. X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/5b5cf22bf0a6acd75c09f34dbafaea00b3876444?ds=sidebyside;hp=04a361d93a6d8edb44424920fe4bd39e3fa8aebc Admin: filter books by print on demand. --- 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',)