diff options
author | luxagraf <sng@luxagraf.net> | 2014-05-13 21:11:10 -0400 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2014-05-13 21:11:10 -0400 |
commit | 750746d3d6f3cd297902a8d8ccd5d7519a9956e0 (patch) | |
tree | b4cd33925598ca41850e4b8359051e378db453e0 /app/books/admin.py | |
parent | 0fa249a811fe6266e198c6cf82658a2ebe0d101b (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.py | 8 |
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) |