summaryrefslogtreecommitdiff
path: root/django/core
diff options
context:
space:
mode:
authorLuke Plant <L.Plant.98@cantab.net>2011-05-24 21:28:43 +0000
committerLuke Plant <L.Plant.98@cantab.net>2011-05-24 21:28:43 +0000
commita482cc0ba38febda15194dc121989eed3b6deec2 (patch)
treef3cc1905c0553f2ae24b2538b6f771c8dddf4eb8 /django/core
parentd7036e52ab856b9e7125391cddcd18c08b5b0938 (diff)
Fixed #16004 - csrf_protect does not send cookie if view returns TemplateResponse
The root bug was in decorator_from_middleware, and the fix also corrects bugs with gzip_page and other decorators. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16276 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/core')
-rw-r--r--django/core/handlers/base.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/core/handlers/base.py b/django/core/handlers/base.py
index f216886d56..d653860547 100644
--- a/django/core/handlers/base.py
+++ b/django/core/handlers/base.py
@@ -133,7 +133,7 @@ class BaseHandler(object):
if hasattr(response, 'render') and callable(response.render):
for middleware_method in self._template_response_middleware:
response = middleware_method(request, response)
- response.render()
+ response = response.render()
except http.Http404, e:
logger.warning('Not Found: %s' % request.path,