remove <!-- DEBUG --> insertion, incompatible with django 1.8 (#14968)
This commit is contained in:
parent
f98e87fcbc
commit
fbd306c23d
|
@ -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
|
||||
|
|
Reference in New Issue