mirror of
https://github.com/django/django.git
synced 2025-11-07 07:15:35 +00:00
Fixed #29791 -- Made Engine.render_to_string() honor autoescape.
This commit is contained in:
committed by
Tim Graham
parent
d4df5e1b0b
commit
624573726a
@@ -160,7 +160,7 @@ class Engine:
|
||||
if isinstance(context, Context):
|
||||
return t.render(context)
|
||||
else:
|
||||
return t.render(Context(context))
|
||||
return t.render(Context(context, autoescape=self.autoescape))
|
||||
|
||||
def select_template(self, template_name_list):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user