Updated views.py

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