From b389f766a991f22aaa9bc82f98c8819c76c478b3 Mon Sep 17 00:00:00 2001 From: Thierry Carrez Date: Fri, 30 Aug 2013 12:49:40 +0200 Subject: [PATCH] Empty comment box after posting one Make sure the comment form is empty after you submitted one. Change-Id: Id15cda33569395ef7c99e9bf38a3f95a71e2eafb --- cfp/views.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cfp/views.py b/cfp/views.py index 10facb3..8bd7e76 100644 --- a/cfp/views.py +++ b/cfp/views.py @@ -86,8 +86,7 @@ def details(request, proposalid): comment.proposal = proposal comment.author = request.user comment.save() - else: - form = CommentForm() + form = CommentForm() comments = Comment.objects.filter(proposal=proposal) return TemplateResponse(request, "cfpdetails.html", {'proposal': proposal,