mirror of
https://github.com/django/django.git
synced 2025-11-03 05:13:23 +00:00
Fixed #26915 -- Fixed regression handling responses returned from view middleware.
This commit is contained in:
parent
ec4a6b33a9
commit
44a6b40280
5 changed files with 85 additions and 10 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue