summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorLuke Plant <L.Plant.98@cantab.net>2011-05-25 17:31:47 +0000
committerLuke Plant <L.Plant.98@cantab.net>2011-05-25 17:31:47 +0000
commit7f3eda2f76ea41e938cf623030f3a68e573d5017 (patch)
treec962457513950a83a9ebe06b4463569d134f28de /docs
parentafa092853fb0fde4abc172f7867121074f260618 (diff)
[1.3.X] 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. Backport of [16276] from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.3.X@16279 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
-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 90da00220e..1885edcf95 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