diff --git a/lms/djangoapps/django_comment_client/utils.py b/lms/djangoapps/django_comment_client/utils.py index 9309f919d39a00fdf2c6061fbc69207f8ae18ca3..d069daf57cc9b4ef0225a9d99ff69da2d2c3add1 100644 --- a/lms/djangoapps/django_comment_client/utils.py +++ b/lms/djangoapps/django_comment_client/utils.py @@ -12,7 +12,7 @@ from django.utils import simplejson from django_comment_common.models import Role from django_comment_client.permissions import check_permissions_by_view -from mitxmako import middleware +import mitxmako import pystache_custom as pystache from xmodule.modulestore.django import modulestore @@ -335,7 +335,7 @@ def url_for_tags(course_id, tags): def render_mustache(template_name, dictionary, *args, **kwargs): - template = middleware.lookup['main'].get_template(template_name).source + template = mitxmako.lookup['main'].get_template(template_name).source return pystache.render(template, dictionary)