Merge "Empty comment box after posting one"
This commit is contained in:
commit
ae269834b5
|
@ -86,8 +86,7 @@ def details(request, proposalid):
|
||||||
comment.proposal = proposal
|
comment.proposal = proposal
|
||||||
comment.author = request.user
|
comment.author = request.user
|
||||||
comment.save()
|
comment.save()
|
||||||
else:
|
form = CommentForm()
|
||||||
form = CommentForm()
|
|
||||||
comments = Comment.objects.filter(proposal=proposal)
|
comments = Comment.objects.filter(proposal=proposal)
|
||||||
return TemplateResponse(request, "cfpdetails.html",
|
return TemplateResponse(request, "cfpdetails.html",
|
||||||
{'proposal': proposal,
|
{'proposal': proposal,
|
||||||
|
|
Loading…
Reference in New Issue