refactor: use MakoService.render_template to remove deprecation warnings

from block code.
This commit is contained in:
Jillian Vogel
2021-10-05 13:34:03 +10:30
parent 457f959356
commit 8d62d337f5
24 changed files with 91 additions and 49 deletions

View File

@@ -188,7 +188,7 @@ def _preview_module_system(request, descriptor, field_data):
mako_service = MakoService(namespace_prefix='lms.')
if settings.FEATURES.get("LICENSING", False):
# stick the license wrapper in front
wrappers.insert(0, wrap_with_license)
wrappers.insert(0, partial(wrap_with_license, mako_service=mako_service))
return PreviewModuleSystem(
static_url=settings.STATIC_URL,