summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorGary Wilson Jr <gary.wilson@gmail.com>2008-08-03 19:55:26 +0000
committerGary Wilson Jr <gary.wilson@gmail.com>2008-08-03 19:55:26 +0000
commitdaa6b38f352447a5afed3184f4ffffd0d6b1f1de (patch)
tree9c37742808145821390b64845aa076da44601f70 /docs
parent71b2e01ec29f972482fad5ef6638c7a2d9495697 (diff)
Fixed #8092, #3828 -- Removed dictionary access for request objects so that GET and POST data doesn't "overwrite" request attributes when used in templates (since dictionary lookup is performed before attribute lookup). This is backwards-incompatible if you were using the request object for dictionary access to the combined GET and POST data, but you should use `request.REQUEST` for that instead.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8202 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
-rw-r--r--docs/request_response.txt12
1 files changed, 0 insertions, 12 deletions
diff --git a/docs/request_response.txt b/docs/request_response.txt
index 54fc24df9e..9b3f6dd0e3 100644
--- a/docs/request_response.txt
+++ b/docs/request_response.txt
@@ -170,18 +170,6 @@ All attributes except ``session`` should be considered read-only.
Methods
-------
-``__getitem__(key)``
- Returns the GET/POST value for the given key, checking POST first, then
- GET. Raises ``KeyError`` if the key doesn't exist.
-
- This lets you use dictionary-accessing syntax on an ``HttpRequest``
- instance. Example: ``request["foo"]`` would return ``True`` if either
- ``request.POST`` or ``request.GET`` had a ``"foo"`` key.
-
-``has_key()``
- Returns ``True`` or ``False``, designating whether ``request.GET`` or
- ``request.POST`` has the given key.
-
``get_host()``
**New in Django development version**