|
|
|
@ -57,7 +57,7 @@ def coursecomment(request, course_id): |
|
|
|
'errors': ['Comment can not be empty'] |
|
|
|
'errors': ['Comment can not be empty'] |
|
|
|
}, status=400) |
|
|
|
}, status=400) |
|
|
|
|
|
|
|
|
|
|
|
if not reply_to: |
|
|
|
if not int(reply_to): |
|
|
|
coursecomment = CourseComment.objects.create( |
|
|
|
coursecomment = CourseComment.objects.create( |
|
|
|
author=request.user, |
|
|
|
author=request.user, |
|
|
|
content=comment, |
|
|
|
content=comment, |
|
|
|
|