Commit af12b8db authored by Trisha Angel Millena's avatar Trisha Angel Millena Committed by Ysabella Panghulan

Edited views.py: changed fields

parent b2d9be06
......@@ -20,9 +20,9 @@ class ForumPostDetailView(DetailView):
class ForumPostCreateView(CreateView):
model = ForumPost
template_name = 'forum/forumpost-add.html'
fields = '__all__'
fields = ['title', 'body', 'author']
class ForumPostUpdateView(UpdateView):
model = ForumPost
template_name = 'forum/forumpost-edit.html'
fields = '__all__'
\ No newline at end of file
fields = ['title', 'body', 'author']
\ 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