From 5cbbfef7bb341a83559bee75e49f6b3c047e6c7a Mon Sep 17 00:00:00 2001 From: luxagraf Date: Mon, 29 May 2017 17:38:56 -0500 Subject: added some filters and search to book admin --- app/books/admin.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'app/books') diff --git a/app/books/admin.py b/app/books/admin.py index 5182659..6d75050 100644 --- a/app/books/admin.py +++ b/app/books/admin.py @@ -4,6 +4,8 @@ from .models import Book, BookHighlight class BookAdmin(admin.ModelAdmin): list_display = ('title', 'admin_thumbnail', 'rating', 'isbn', 'author_name', 'read_date', 'publish_date') + search_fields = ['title', 'body_markdown'] + list_filter = ('pub_date', 'rating', 'read_date') class BookHighlightAdmin(admin.ModelAdmin): -- cgit v1.2.3-70-g09d2