Filtering books by status in admin.
authorRadek Czajka <radoslaw.czajka@nowoczesnapolska.org.pl>
Wed, 19 Jun 2013 10:54:29 +0000 (12:54 +0200)
committerRadek Czajka <radoslaw.czajka@nowoczesnapolska.org.pl>
Wed, 19 Jun 2013 10:54:29 +0000 (12:54 +0200)
apps/catalogue/admin.py

index a3faa98..c888a08 100644 (file)
@@ -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']