CBV implementation, created AuthorCreateView

parent 89e84d0f
...@@ -31,5 +31,11 @@ class AuthorDetailView(DetailView): ...@@ -31,5 +31,11 @@ class AuthorDetailView(DetailView):
model = Author model = Author
template_name = 'bookshelf/author_details.html' template_name = 'bookshelf/author_details.html'
class AuthorCreateView(CreateView):
template_name = 'bookshelf/add-author.html'
model = Author
fields = '__all__'
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