summaryrefslogtreecommitdiff
path: root/docs/ref
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2011-12-16 23:40:32 +0000
committerAdrian Holovaty <adrian@holovaty.com>2011-12-16 23:40:32 +0000
commit3f003a3c4b5338915e3889da8bf10577296459b3 (patch)
treebca5e19c862746c69057e4819e754254d31e5a17 /docs/ref
parent61f0aff811aa596fa62136852c59d47f988d1185 (diff)
Fixed #17323 -- Renamed HttpRequest.raw_post_data to request.body. Thanks for the patch, dstufft
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17210 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/ref')
-rw-r--r--docs/ref/request-response.txt25
1 files changed, 14 insertions, 11 deletions
diff --git a/docs/ref/request-response.txt b/docs/ref/request-response.txt
index 64d0e10ca3..b0be311de9 100644
--- a/docs/ref/request-response.txt
+++ b/docs/ref/request-response.txt
@@ -30,6 +30,20 @@ Attributes
All attributes except ``session`` should be considered read-only.
+.. attribute:: HttpRequest.body
+
+ .. versionchanged:: 1.4
+ Before Django 1.4, ``HttpRequest.body`` was named ``HttpRequest.raw_post_data``.
+
+ The raw HTTP request body as a byte string. This is useful for processing
+ data in different ways than conventional HTML forms: binary images,
+ XML payload etc. For processing conventional form data, use ``HttpRequest.POST``.
+
+ .. versionadded:: 1.3
+
+ You can also read from an HttpRequest using a file-like interface. See
+ :meth:`HttpRequest.read()`.
+
.. attribute:: HttpRequest.path
A string representing the full path to the requested page, not including
@@ -170,17 +184,6 @@ All attributes except ``session`` should be considered read-only.
support activated. See the :doc:`session documentation
</topics/http/sessions>` for full details.
-.. attribute:: HttpRequest.raw_post_data
-
- The raw HTTP POST data as a byte string. This is useful for processing
- data in different formats than of conventional HTML forms: binary images,
- XML payload etc. For processing form data use ``HttpRequest.POST``.
-
- .. versionadded:: 1.3
-
- You can also read from an HttpRequest using file-like interface. See
- :meth:`HttpRequest.read()`.
-
.. attribute:: HttpRequest.urlconf
Not defined by Django itself, but will be read if other code (e.g., a custom