diff options
| author | Carl Meyer <carl@oddbird.net> | 2011-10-11 22:21:14 +0000 |
|---|---|---|
| committer | Carl Meyer <carl@oddbird.net> | 2011-10-11 22:21:14 +0000 |
| commit | 5c8c7c34be173919501615151ab83229a1bd1c03 (patch) | |
| tree | b16d75b317b9fa0d0e93cff9725445b687ee554b /docs/ref/request-response.txt | |
| parent | 8b801a7553f28c028fd8f602e9c5e86580600d8e (diff) | |
Fixed #17035, #17036 -- Clarified documentation regarding TemplateResponse and middleware handling. Refs #16004. Thanks ptone.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16961 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/ref/request-response.txt')
| -rw-r--r-- | docs/ref/request-response.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/ref/request-response.txt b/docs/ref/request-response.txt index e15fa5016f..fc19493132 100644 --- a/docs/ref/request-response.txt +++ b/docs/ref/request-response.txt @@ -758,3 +758,10 @@ types of HTTP responses. Like ``HttpResponse``, these subclasses live in .. class:: HttpResponseServerError Acts just like :class:`HttpResponse` but uses a 500 status code. + +.. note:: + + If a custom subclass of :class:`HttpResponse` implements a ``render`` + method, Django will treat it as emulating a + :class:`~django.template.response.SimpleTemplateResponse`, and the + ``render`` method must itself return a valid response object. |
