Commit 5b820bac authored by RJC's avatar RJC

modified fields in AuthorDetailView in views.py in bookshelf module

parent 1771920b
...@@ -30,4 +30,7 @@ class AuthorListView(generic.ListView): ...@@ -30,4 +30,7 @@ class AuthorListView(generic.ListView):
context_object_name = 'authors' context_object_name = 'authors'
class AuthorDetailView(generic.DetailView): class AuthorDetailView(generic.DetailView):
pass model = Author
template_name = 'bookshelf/author_detail.html'
queryset = Author.objects.all()
context_object_name = 'authors'
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