Skip to content

Commit

Permalink
fixed bug with passing RequestContext to jinja2
Browse files Browse the repository at this point in the history
  • Loading branch information
wolph committed Feb 25, 2017
1 parent e206238 commit 6c90f33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django_utils/view_decorators.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def _process_response(request, response, response_class):
render_to_string = django_loader.render_to_string

return response_class(render_to_string(
request.template, context=request.context))
request.template, context=request.context.flatten()))

else:
raise UnknownViewResponseError(
Expand Down

0 comments on commit 6c90f33

Please sign in to comment.