diff options
| author | Claude Paroz <claude@2xlibre.net> | 2014-04-26 16:00:15 +0200 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2014-04-26 16:02:53 +0200 |
| commit | 680a0f08b1ace39f995fce975caabb1875b07c6f (patch) | |
| tree | 165a26d3f91522e129adc12f977c38919d840a96 /docs/ref/request-response.txt | |
| parent | 6d6af7244b7e3c42ef77c89d6c3e8e0e79e7176f (diff) | |
Updated doc links to point to Python 3 documentation
Diffstat (limited to 'docs/ref/request-response.txt')
| -rw-r--r-- | docs/ref/request-response.txt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/ref/request-response.txt b/docs/ref/request-response.txt index 929882989a..5029854569 100644 --- a/docs/ref/request-response.txt +++ b/docs/ref/request-response.txt @@ -662,8 +662,8 @@ Methods .. method:: HttpResponse.set_cookie(key, value='', max_age=None, expires=None, path='/', domain=None, secure=None, httponly=False) - Sets a cookie. The parameters are the same as in the :class:`Cookie.Morsel` - object in the Python standard library. + Sets a cookie. The parameters are the same as in the + :class:`~http.cookies.Morsel` cookie object in the Python standard library. * ``max_age`` should be a number of seconds, or ``None`` (default) if the cookie should last only as long as the client's browser session. @@ -822,7 +822,7 @@ JsonResponse objects The ``safe`` boolean parameter defaults to ``True``. If it's set to ``False``, any object can be passed for serialization (otherwise only ``dict`` instances are allowed). If ``safe`` is ``True`` and a non-``dict`` object is passed as - the first argument, a :exc:`~exceptions.TypeError` will be raised. + the first argument, a :exc:`TypeError` will be raised. Usage ----- @@ -843,7 +843,7 @@ parameter to ``False``:: >>> response = JsonResponse([1, 2, 3], safe=False) -Without passing ``safe=False``, a :exc:`~exceptions.TypeError` will be raised. +Without passing ``safe=False``, a :exc:`TypeError` will be raised. .. warning:: |
