From 7d143b2779bf6f74135e13895312ae73cd9436f5 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Wed, 19 Jun 2013 12:54:29 +0200 Subject: [PATCH] Filtering books by status in admin. --- apps/catalogue/admin.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/catalogue/admin.py b/apps/catalogue/admin.py index a3faa98e..c888a086 100644 --- a/apps/catalogue/admin.py +++ b/apps/catalogue/admin.py @@ -3,6 +3,8 @@ from django.contrib import admin from catalogue import models class BookAdmin(admin.ModelAdmin): + list_display = ['title', 'public', '_published', '_new_publishable'] + list_filter = ['public', '_published', '_new_publishable'] prepopulated_fields = {'slug': ['title']} search_fields = ['title'] -- 2.20.1