@require_POST
@login_required
@permitted
def create_sub_comment(request, course_id, comment_id):
 if is_comment_too_deep(parent=cc.Comment(comment_id)):
  return JsonError(_('Comment level too deep'))
 return _create_comment(request, CourseKey.from_string(course_id), parent_id=comment_id)

@ require_POST @ login_required @ permitted def create_sub_comment ( request , course_id , comment_id ) : if is_comment_too_deep ( parent = cc . Comment ( comment_id ) ) : return JsonError ( _ ( 'Comment level too deep' ) ) return _create_comment ( request , CourseKey . from_string ( course_id ) , parent_id = comment_id )
given a course_id and comment_id .