Fixed #26915 -- Fixed regression handling responses returned from view middleware.

This commit is contained in:
Alex Hill 2016-07-19 16:45:32 +08:00 committed by Tim Graham
parent ec4a6b33a9
commit 44a6b40280
5 changed files with 85 additions and 10 deletions

View file

@ -9,8 +9,8 @@ def normal_view(request):
def template_response(request):
template = engines['django'].from_string('OK')
return TemplateResponse(request, template)
template = engines['django'].from_string('template_response OK{% for m in mw %}\n{{ m }}{% endfor %}')
return TemplateResponse(request, template, context={'mw': []})
def template_response_error(request):