1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Edited the middleware doc for completeness, clarity, and consistency.

This commit is contained in:
Aymeric Augustin
2012-12-09 22:22:36 +01:00
parent ae8e97384b
commit be9f2919e0
2 changed files with 113 additions and 69 deletions

View File

@@ -134,7 +134,7 @@ class BaseHandler(object):
raise ValueError("The view %s.%s didn't return an HttpResponse object." % (callback.__module__, view_name))
# If the response supports deferred rendering, apply template
# response middleware and the render the response
# response middleware and then render the response
if hasattr(response, 'render') and callable(response.render):
for middleware_method in self._template_response_middleware:
response = middleware_method(request, response)