Commit 7a160a2b authored by RJC's avatar RJC

added forumpostupdateview to views.py in forum module

parent 7fffbe43
......@@ -37,3 +37,13 @@ class ForumPostCreateView(generic.CreateView):
def get_success_url(self):
return reverse('forum:forumpostdetailview', kwargs={ 'pk': self.object.id},
current_app=self.request.resolver_match.namespace)
class ForumPostUpdateView(generic.UpdateView):
model = ForumPost
template_name = 'forum/forumpost-edit.html'
fields = '__all__'
def get_success_url(self):
return reverse('forum:forumpostdetailview', kwargs={ 'pk': self.object.id},
current_app=self.request.resolver_match.namespace)
\ No newline at end of file
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