summaryrefslogtreecommitdiff
path: root/app/books/admin.py
blob: 3f222d8bf289b8c2374c1899d9b262bab879d6b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
from django.contrib import admin
from .models import Book, BookHighlight


class BookAdmin(admin.ModelAdmin):
    list_display = ('title', 'isbn', 'author_name', 'read_date')


class BookHighlightAdmin(admin.ModelAdmin):
    list_display = ('book', 'date_added')

admin.site.register(Book, BookAdmin)
admin.site.register(BookHighlight, BookHighlightAdmin)