Django

Code

Changeset 6155

Show
Ignore:
Timestamp:
09/13/07 22:17:46 (1 year ago)
Author:
mtredinnick
Message:

Fixed #4726 -- Added a note about the exception raised by QuerySet?.getitem.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/docs/request_response.txt

    r5846 r6155  
    184184    * ``__getitem__(key)`` -- Returns the value for the given key. If the key 
    185185      has more than one value, ``__getitem__()`` returns the last value. 
     186      Raises ``django.utils.datastructure.MultiValueDictKeyError`` if the key 
     187      does not exist (fortunately, this is a subclass of Python's standard 
     188      ``KeyError``, so you can stick to catching ``KeyError``). 
    186189 
    187190    * ``__setitem__(key, value)`` -- Sets the given key to ``[value]``