Browse files

Fixed #4726 -- Added a note about the exception raised by QuerySet.__…


git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent da0fef7 commit 813c48e6eb146a06d40b4d11efebee1d1493665d @malcolmt malcolmt committed Sep 14, 2007
Showing with 3 additions and 0 deletions.
  1. +3 −0 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

0 comments on commit 813c48e

Please sign in to comment.