diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2008-09-17 05:18:41 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2008-09-17 05:18:41 +0000 |
| commit | 7a80a9fa7de4a9e466e66fb4d2b3242e5da67334 (patch) | |
| tree | 8d41238a2e933d3539cdb8dbc1743e32a97004bf /docs | |
| parent | 26a9ac491cb77642d31cc7e7ab7418593b1979e7 (diff) | |
Fixed #8546 -- Fixed error in request-response.txt where we were incorrectly listing HttpResponse.content() in the 'Methods' section instead of the 'Attributes' section. Thanks, schmichael
git-svn-id: http://code.djangoproject.com/svn/django/trunk@9054 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/request-response.txt | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/docs/ref/request-response.txt b/docs/ref/request-response.txt index 333a97259c..d8f4fe04a0 100644 --- a/docs/ref/request-response.txt +++ b/docs/ref/request-response.txt @@ -433,6 +433,14 @@ this is how you might return a Microsoft Excel spreadsheet:: There's nothing Django-specific about the ``Content-Disposition`` header, but it's easy to forget the syntax, so we've included it here. +Attributes +---------- + +.. attribute:: HttpResponse.content + + A normal Python string representing the content, encoded from a Unicode + object if necessary. + Methods ------- @@ -502,12 +510,6 @@ Methods values you used in ``set_cookie()`` -- otherwise the cookie may not be deleted. -.. method:: HttpResponse.content() - - Returns the content as a Python string, encoding it from a Unicode object - if necessary. Note this is a property, not a method, so use ``r.content`` - instead of ``r.content()``. - .. method:: HttpResponse.write(content) This method makes an :class:`HttpResponse` instance a file-like object. |
