diff options
| author | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2007-09-14 03:17:46 +0000 |
|---|---|---|
| committer | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2007-09-14 03:17:46 +0000 |
| commit | 813c48e6eb146a06d40b4d11efebee1d1493665d (patch) | |
| tree | d47d7e908c093a0bea2800f2160f66015ca18b9e | |
| parent | da0fef756c0e47e549cba1edc1f3900973e2b70a (diff) | |
Fixed #4726 -- Added a note about the exception raised by QuerySet.__getitem__.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6155 bcc190cf-cafb-0310-a4f2-bffc1f526a37
| -rw-r--r-- | docs/request_response.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/docs/request_response.txt b/docs/request_response.txt index 867464226a..1eef41659a 100644 --- a/docs/request_response.txt +++ b/docs/request_response.txt @@ -183,6 +183,9 @@ subclass of dictionary. Exceptions are outlined here: * ``__getitem__(key)`` -- Returns the value for the given key. If the key has more than one value, ``__getitem__()`` returns the last value. + Raises ``django.utils.datastructure.MultiValueDictKeyError`` if the key + does not exist (fortunately, this is a subclass of Python's standard + ``KeyError``, so you can stick to catching ``KeyError``). * ``__setitem__(key, value)`` -- Sets the given key to ``[value]`` (a Python list whose single element is ``value``). Note that this, as |
