Fix for adding comments to tasks

Change-Id: Ibcab5e9f6312abbaa87763425a5e04b7c503e999
This commit is contained in:
Nikita Konovalov 2013-11-28 19:49:33 +04:00
parent 2280bac923
commit 0e3933f96a

View File

@ -53,7 +53,7 @@ def view(request, storyid):
@require_POST
def comment(request, storyid):
story = Story.objects.get(id=storyid)
if request.POST.get('comment', False):
if request.POST.get('content', False):
newcomment = Comment(story=story,
author=request.user,
comment_type="comment",