summaryrefslogtreecommitdiff
path: root/app/books/admin.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/books/admin.py')
-rw-r--r--app/books/admin.py16
1 files changed, 9 insertions, 7 deletions
diff --git a/app/books/admin.py b/app/books/admin.py
index 0b9b7b7..3f222d8 100644
--- a/app/books/admin.py
+++ b/app/books/admin.py
@@ -1,11 +1,13 @@
from django.contrib import admin
-from .models import Book,BookHighlight
+from .models import Book, BookHighlight
+
class BookAdmin(admin.ModelAdmin):
- list_display = ('title', 'isbn', 'author_name', 'read_date')
-
+ 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)
+ list_display = ('book', 'date_added')
+
+admin.site.register(Book, BookAdmin)
+admin.site.register(BookHighlight, BookHighlightAdmin)