Commit 182c6d43 authored by RJC's avatar RJC

added authorupdateview

parent adee36ce
......@@ -70,3 +70,9 @@ class AuthorDetailView(generic.DetailView):
class AuthorUpdateView(generic.UpdateView):
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