Commit 5837ce83 authored by Jan Enzo Salvador's avatar Jan Enzo Salvador

CBV implementation for the forum post details page

parent 4776007d
...@@ -8,6 +8,9 @@ def forum_view(request): ...@@ -8,6 +8,9 @@ def forum_view(request):
users = ForumPost.objects.all() users = ForumPost.objects.all()
return render(request, 'forum/forum.html', {'users': users}) return render(request, 'forum/forum.html', {'users': users})
class ForumPostDetailView(DetailView):
model = ForumPost
template_name = "forum/forum-details.html"
......
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