Commit 182c6d43 authored by RJC's avatar RJC

added authorupdateview

parent adee36ce
......@@ -69,4 +69,10 @@ class AuthorDetailView(generic.DetailView):
class AuthorUpdateView(generic.UpdateView):
model = Author
\ No newline at end of file
model = Author
fields = '__all__'
template_name = 'bookshelf/edit-author.html'
def get_success_url(self):
return reverse('bookshelf:authordetailview', kwargs={'pk': self.object.id},
current_app=self.request.resolver_match.namespace)
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