Commit 49301354 authored by Jan Enzo Salvador's avatar Jan Enzo Salvador

CBV implementation for the edit forum post page

parent 752acd1b
...@@ -17,6 +17,11 @@ class ForumPostCreateView(CreateView): ...@@ -17,6 +17,11 @@ class ForumPostCreateView(CreateView):
template_name = "forum/forumpost-add.html" template_name = "forum/forumpost-add.html"
fields = "__all__" fields = "__all__"
class ForumPostUpdateView(UpdateView):
model = ForumPost
template_name = "forum/forumpost-edit.html"
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