remove <!-- DEBUG --> insertion, incompatible with django 1.8 (#14968)

This commit is contained in:
Frédéric Péters 2017-02-13 12:58:53 +01:00
parent f98e87fcbc
commit fbd306c23d
1 changed files with 0 additions and 5 deletions

View File

@ -39,9 +39,4 @@ class TemplateRenderer(BaseRenderer):
elif 'template' in self.config:
template = Template(self.config['template'])
if settings.TEMPLATE_DEBUG:
if not hasattr(template, 'render'):
template = get_template(template)
debug_template = Template('<!-- DEBUG:\n{{ blurp_debug__ }}\n-->')
template.nodelist.extend(debug_template.nodelist)
return template