summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorJames Bennett <ubernostrum@gmail.com>2008-10-05 16:03:58 +0000
committerJames Bennett <ubernostrum@gmail.com>2008-10-05 16:03:58 +0000
commitb131462d76d028ef8b0aaebdfcf3e63370e57c49 (patch)
tree4c62094bfd98d1d6b920b484fd7d9acfa1e2316d /docs
parent2f0be0faae2f10b6ae8c049e8469ab8404f9c7bf (diff)
Add note to 1.0 porting guide about removal of dictionary access to HTTP request objects
git-svn-id: http://code.djangoproject.com/svn/django/trunk@9153 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
-rw-r--r--docs/releases/1.0-porting-guide.txt16
1 files changed, 16 insertions, 0 deletions
diff --git a/docs/releases/1.0-porting-guide.txt b/docs/releases/1.0-porting-guide.txt
index c1605e4293..ba1a918e9a 100644
--- a/docs/releases/1.0-porting-guide.txt
+++ b/docs/releases/1.0-porting-guide.txt
@@ -567,6 +567,22 @@ it to ``_`` yourself::
HTTP request/response objects
-----------------------------
+Dictionary access to ``HttpRequest``
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+``HttpRequest`` objects no longer directly support dictionary-style
+access; previously, both ``GET`` and ``POST`` data were directly
+available on the ``HttpRequest`` object (e.g., you could check for a
+piece of form data by using ``if 'some_form_key' in request`` or by
+reading ``request['some_form_key']``. This is no longer supported; if
+you need access to the combined ``GET`` and ``POST`` data, use
+``request.REQUEST`` instead.
+
+It is strongly suggested, however, that you always explicitly look in
+the appropriate dictionary for the type of request you expect to
+receive (``request.GET`` or ``request.POST``); relying on the combined
+``request.REQUEST`` dictionary can mask the origin of incoming data.
+
Accessing ``HTTPResponse`` headers
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~