Commit e8ac5860 by Ibrahim Awwal

Oops, this was needed for replies to be rendered in the main forum view.

parent 32ccf51e
...@@ -210,10 +210,10 @@ def single_thread(request, course_id, discussion_id, thread_id): ...@@ -210,10 +210,10 @@ def single_thread(request, course_id, discussion_id, thread_id):
annotated_content_info = utils.get_annotated_content_infos(course_id, thread, request.user, user_info=user_info) annotated_content_info = utils.get_annotated_content_infos(course_id, thread, request.user, user_info=user_info)
context = {'thread': thread.to_dict(), 'course_id': course_id} context = {'thread': thread.to_dict(), 'course_id': course_id}
# TODO: Remove completely or switch back to server side rendering # TODO: Remove completely or switch back to server side rendering
# html = render_to_string('discussion/_ajax_single_thread.html', context) html = render_to_string('discussion/_ajax_single_thread.html', context)
return utils.JsonResponse({ return utils.JsonResponse({
# 'html': html, 'html': html,
'content': utils.safe_content(thread.to_dict()), 'content': utils.safe_content(thread.to_dict()),
'annotated_content_info': annotated_content_info, 'annotated_content_info': annotated_content_info,
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment