Commit bc94332b authored by RJC's avatar RJC

modifed ForumPostList view

parent dfa9afb0
...@@ -6,3 +6,5 @@ from .models import ForumPost, Reply ...@@ -6,3 +6,5 @@ from .models import ForumPost, Reply
class ForumPostListView(generic.ListView): class ForumPostListView(generic.ListView):
model = ForumPost model = ForumPost
template_name = 'forum/forumpost_list.html' template_name = 'forum/forumpost_list.html'
queryset = ForumPost.objects.all()
context_object_name = 'forumposts'
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