From a482cc0ba38febda15194dc121989eed3b6deec2 Mon Sep 17 00:00:00 2001 From: Luke Plant Date: Tue, 24 May 2011 21:28:43 +0000 Subject: 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 --- docs/ref/template-response.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'docs/ref/template-response.txt') 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 -- cgit v1.2.1