CBV implmentation for AuthorListView and AuthorDetailView

parent 5a43d94c
......@@ -16,5 +16,13 @@ class BookDetailView(DetailView):
model = Book
template_name = 'bookshelf/book_details.html'
class AuthorListView(ListView):
model = Author
template_name = 'bookshelf/authors.html'
class AuthorDetailView(DetailView):
model = Author
template_name = 'bookshelf/author_details.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