diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2005-11-30 00:19:15 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2005-11-30 00:19:15 +0000 |
| commit | 674ac13ca6cf99a902d75e2fad5748570b0aa913 (patch) | |
| tree | 275981ddfc05d41e537a502ff058c732e6862876 /docs/request_response.txt | |
| parent | e2e98aff6a58a497f66a473b3fad9ed99e4cb755 (diff) | |
Fixed #709 -- Added a __contains__ method to MultiValueDict. Thanks, Brantley
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1498 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/request_response.txt')
| -rw-r--r-- | docs/request_response.txt | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/docs/request_response.txt b/docs/request_response.txt index 85a5e091db..e0b7a01805 100644 --- a/docs/request_response.txt +++ b/docs/request_response.txt @@ -31,11 +31,11 @@ All attributes except ``session`` should be considered read-only. ``GET`` A dictionary-like object containing all given HTTP GET parameters. See the - ``MultiValueDict`` documentation below. + ``QueryDict`` documentation below. ``POST`` A dictionary-like object containing all given HTTP POST parameters. See the - ``MultiValueDict`` documentation below. + ``QueryDict`` documentation below. ``REQUEST`` For convenience, a dictionary-like object that searches ``POST`` first, @@ -150,6 +150,10 @@ directly. * ``__setitem__(key, value)`` -- Sets the given key to ``[value]`` (a Python list whose single element is ``value``). + * ``__contains__(key)`` -- **New in Django development version.*** Returns + ``True`` if the given key exists. This lets you do, e.g., + ``if "foo" in request.GET``. + * ``__len__()`` * ``get(key, default)`` -- Uses the same logic as ``__getitem__()`` above, |
