Commit d884a56b authored by Jan Enzo Salvador's avatar Jan Enzo Salvador

Added ListView and DetailView for Authors

parent 7213fa46
...@@ -21,3 +21,13 @@ class BooksDetailView(DetailView): ...@@ -21,3 +21,13 @@ class BooksDetailView(DetailView):
template_name = 'bookshelf/book_details.html' template_name = 'bookshelf/book_details.html'
# default template is called the books_detail.html # default template is called the books_detail.html
class AuthorsListView(ListView):
model = Author
template_name = 'bookshelf/authors.html'
# default template is called the authors_list.html
class AuthorsDetailView(DetailView):
model = Author
template_name = 'bookshelf/author_details.html'
# default template is called the authors_detail.html
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