|
|
|
|
@ -90,7 +90,7 @@ def coursecomment(request, course_id): |
|
|
|
|
parent=_coursecomment, |
|
|
|
|
) |
|
|
|
|
ctx = {'node': coursecomment, 'user': request.user} |
|
|
|
|
html = loader.render_to_string('course/blocks/comment.html', ctx) |
|
|
|
|
html = loader.render_to_string('templates/blocks/comment.html', ctx) |
|
|
|
|
return JsonResponse({ |
|
|
|
|
'success': True, |
|
|
|
|
'comment': html, |
|
|
|
|
@ -139,7 +139,7 @@ def lessoncomment(request, lesson_id): |
|
|
|
|
parent=_lessoncomment, |
|
|
|
|
) |
|
|
|
|
ctx = {'node': lessoncomment, 'user': request.user} |
|
|
|
|
html = loader.render_to_string('course/blocks/comment.html', ctx) |
|
|
|
|
html = loader.render_to_string('templates/blocks/comment.html', ctx) |
|
|
|
|
return JsonResponse({ |
|
|
|
|
'success': True, |
|
|
|
|
'comment': html, |
|
|
|
|
|