summaryrefslogtreecommitdiff
path: root/docs/ref
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 /docs/ref
parentd7036e52ab856b9e7125391cddcd18c08b5b0938 (diff)
downloaddjango-a482cc0ba38febda15194dc121989eed3b6deec2.tar.gz
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 'docs/ref')
-rw-r--r--docs/ref/template-response.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/ref/template-response.txt b/docs/ref/template-response.txt
index 1b92d73d48..0064290d4e 100644
--- a/docs/ref/template-response.txt
+++ b/docs/ref/template-response.txt
@@ -119,6 +119,10 @@ Methods
rendered :class:`~django.template.response.SimpleTemplateResponse`
instance.
+ If the callback returns a value that is not `None`, this will be
+ used as the response instead of the original response object (and
+ will be passed to the next post rendering callback etc.)
+
.. method:: SimpleTemplateResponse.render():
Sets :attr:`response.content` to the result obtained by