Ticket #26258: patch.diff

File patch.diff, 872 bytes (added by Ivan Tsouvarev, 9 years ago)
  • django/template/backends/jinja2.py

    diff --git a/django/template/backends/jinja2.py b/django/template/backends/jinja2.py
    index 7cdf4cd..6fb06eb 100644
    a b from django.conf import settings  
    99from django.template import TemplateDoesNotExist, TemplateSyntaxError
    1010from django.utils import six
    1111from django.utils.module_loading import import_string
     12from django.utils.safestring import mark_safe
    1213
    1314from .base import BaseEngine
    1415from .utils import csrf_input_lazy, csrf_token_lazy
    class Template(object):  
    6869            context['request'] = request
    6970            context['csrf_input'] = csrf_input_lazy(request)
    7071            context['csrf_token'] = csrf_token_lazy(request)
    71         return self.template.render(context)
     72        return mark_safe(self.template.render(context))
    7273
    7374
    7475class Origin(object):
Back to Top