From: Radek Czajka Date: Wed, 19 Jun 2013 10:54:29 +0000 (+0200) Subject: Filtering books by status in admin. X-Git-Url: https://git.mdrn.pl/redakcja.git/commitdiff_plain/7d143b2779bf6f74135e13895312ae73cd9436f5 Filtering books by status in admin. --- 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']