Empty comment box after posting one

Make sure the comment form is empty after you submitted one.

Change-Id: Id15cda33569395ef7c99e9bf38a3f95a71e2eafb
This commit is contained in:
Thierry Carrez 2013-08-30 12:49:40 +02:00
parent cecd79f1c5
commit b389f766a9
1 changed files with 1 additions and 2 deletions

View File

@ -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,