mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #26915 -- Fixed regression handling responses returned from view middleware.
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user