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