Commit 752acd1b authored by Jan Enzo Salvador's avatar Jan Enzo Salvador

CBV implementation for the add forum post page

parent 5837ce83
...@@ -10,7 +10,13 @@ def forum_view(request): ...@@ -10,7 +10,13 @@ def forum_view(request):
class ForumPostDetailView(DetailView): class ForumPostDetailView(DetailView):
model = ForumPost model = ForumPost
template_name = "forum/forum-details.html" template_name = "forum/forumpost-details.html"
class ForumPostCreateView(CreateView):
model = ForumPost
template_name = "forum/forumpost-add.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