diff options
author | luxagraf <sng@luxagraf.net> | 2017-05-29 17:38:56 -0500 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2017-05-29 17:38:56 -0500 |
commit | 5cbbfef7bb341a83559bee75e49f6b3c047e6c7a (patch) | |
tree | ff68c12e3b4d4543ef8726393f5e8c874b30976d /app/books/admin.py | |
parent | 05f7c323737a5ed81125587104527d27d9ab13a4 (diff) |
added some filters and search to book admin
Diffstat (limited to 'app/books/admin.py')
-rw-r--r-- | app/books/admin.py | 2 |
1 files changed, 2 insertions, 0 deletions
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): |