Commit 66bb255a authored by Trisha Angel Millena's avatar Trisha Angel Millena

Edited views.py: changed fields

parent 26a30abf
......@@ -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