CBV implementation of AuthorUpdateView

parent 8faa57c8
...@@ -41,6 +41,12 @@ class AuthorCreateView(CreateView): ...@@ -41,6 +41,12 @@ class AuthorCreateView(CreateView):
model = Author model = Author
fields = '__all__' fields = '__all__'
class AuthorUpdateView(UpdateView):
model = Author
fields = "__all__"
template_name = "bookshelf/edit-author.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