Commit 8407575e authored by Agu Syquia's avatar Agu Syquia

Updated views.py

Added template_name to specify the path of the template
parent 6853bf40
......@@ -14,6 +14,7 @@ class BooksView(ListView):
class BooksDetailsView(DetailView):
model = Books
template_name = 'bookshelf/book_details.html'
class AuthorsView(ListView):
model = Author
......@@ -21,5 +22,6 @@ class AuthorsView(ListView):
class AuthorsDetailsView(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