Commit 4d414f72 authored by Ysabella Panghulan's avatar Ysabella Panghulan

added author list and detail views

parent a7d2b177
...@@ -22,4 +22,12 @@ class BooksListView(ListView): ...@@ -22,4 +22,12 @@ class BooksListView(ListView):
class BooksDetailView(DetailView): class BooksDetailView(DetailView):
model = Books model = Books
template_name = 'bookshelf/book_details.html' template_name = 'bookshelf/book_details.html'
\ No newline at end of file
class AuthorListView(ListView):
model = Author
template_name = 'bookshelf/authors.html'
class AuthorDetailView(DetailView):
model = Author
template_name = 'bookshelf/author_details.html'
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment