blob: 3faa14e567312a3fbbec0e5436f62fd676778f35 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
from django.contrib import admin
from .models import Book
from orderable.admin import OrderableAdmin
@admin.register(Book)
class BookAdmin(OrderableAdmin):
list_display = ('title', 'admin_thumbnail', 'isbn', 'author_last_name', 'sort_order_display')
search_fields = ['title', 'body_markdown']
class Media:
js = ('next-prev-links.js',)
|