From 0a0043cbdb21902cdc048aae7cd6321dea3ee006 Mon Sep 17 00:00:00 2001 From: Ivlev Denis Date: Tue, 30 Jan 2018 14:56:21 +0300 Subject: [PATCH] Fix zero reply_id --- apps/course/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/course/views.py b/apps/course/views.py index 6521837f..c6450396 100644 --- a/apps/course/views.py +++ b/apps/course/views.py @@ -57,7 +57,7 @@ def coursecomment(request, course_id): 'errors': ['Comment can not be empty'] }, status=400) - if not reply_to: + if not int(reply_to): coursecomment = CourseComment.objects.create( author=request.user, content=comment,