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:
parent
cecd79f1c5
commit
b389f766a9
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user