Updated views.py

parent 6e18b527
......@@ -11,19 +11,15 @@ def home_view(request):
class BooksView(ListView):
model = Books
template_name = 'bookshelf/books.html'
class BooksDetailView(DetailView):
model = Books
template_name = 'bookshelf/books_detail.html'
class AuthorView(ListView):
model = Author
template_name = 'bookshelf/author.html'
class AuthorDetailView(DetailView):
model = Author
template_name = 'bookshelf/author_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