diff --git a/docs/ref/request-response.txt b/docs/ref/request-response.txt index f0e0c13a2f..b99ef25cac 100644 --- a/docs/ref/request-response.txt +++ b/docs/ref/request-response.txt @@ -555,10 +555,10 @@ a subclass of dictionary. Exceptions are outlined here: .. method:: QueryDict.__getitem__(key) Returns the last data value for the given key. If the key has more than one - value, it returns the last value. If the value is an empty list, [] is - returned. Raises django.utils.datastructures.MultiValueDictKeyError if + value, it returns the last value. If the value is an empty list, ``[]`` is + returned. Raises ``django.utils.datastructures.MultiValueDictKeyError`` if the key does not exist. (This is a subclass of Python's standard - :exc:KeyError, so you can stick to catching KeyError.) + :exc:`KeyError`, so you can stick to catching ``KeyError``.) .. method:: QueryDict.__setitem__(key, value)