Commit 07ef7bdb authored by RJC's avatar RJC

modified BookDetailView in views.py in bookshelf module

parent 8dc47cc9
......@@ -17,7 +17,10 @@ class BookListView(generic.ListView):
class BookDetailView(generic.DetailView):
pass
model = Books
template_name = 'bookshelf/book_detail.html'
queryset = Books.objects.all()
context_object_name = 'books'
class AuthorListView(generic.ListView):
......
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