summaryrefslogtreecommitdiff
path: root/app/books/admin.py
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2014-05-13 21:11:10 -0400
committerluxagraf <sng@luxagraf.net>2014-05-13 21:11:10 -0400
commit750746d3d6f3cd297902a8d8ccd5d7519a9956e0 (patch)
treeb4cd33925598ca41850e4b8359051e378db453e0 /app/books/admin.py
parent0fa249a811fe6266e198c6cf82658a2ebe0d101b (diff)
Remaned the bookhighlight model to be singlar and imported all the json
data I have
Diffstat (limited to 'app/books/admin.py')
-rw-r--r--app/books/admin.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/books/admin.py b/app/books/admin.py
index 2bf7cdc..0b9b7b7 100644
--- a/app/books/admin.py
+++ b/app/books/admin.py
@@ -1,11 +1,11 @@
from django.contrib import admin
-from .models import Book,BookHighlights
+from .models import Book,BookHighlight
class BookAdmin(admin.ModelAdmin):
- list_display = ('title', 'author_name', 'read_date')
+ list_display = ('title', 'isbn', 'author_name', 'read_date')
-class BookHighlightsAdmin(admin.ModelAdmin):
+class BookHighlightAdmin(admin.ModelAdmin):
list_display = ('book', 'date_added')
admin.site.register(Book, BookAdmin)
-admin.site.register(BookHighlights, BookHighlightsAdmin)
+admin.site.register(BookHighlight, BookHighlightAdmin)