diff options
| author | Tim Graham <timograham@gmail.com> | 2016-05-20 10:50:51 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2016-05-20 11:44:29 -0400 |
| commit | 46a38307c245ab7ed0b4d5d5ebbaf523a81e3b75 (patch) | |
| tree | 214e952529a3d125d0efb097af9c4caa7e12635f /docs/ref/request-response.txt | |
| parent | 1915a7e5c56d996b0e98decf8798c7f47ff04e76 (diff) | |
Removed versionadded/changed annotations for 1.9.
Diffstat (limited to 'docs/ref/request-response.txt')
| -rw-r--r-- | docs/ref/request-response.txt | 54 |
1 files changed, 14 insertions, 40 deletions
diff --git a/docs/ref/request-response.txt b/docs/ref/request-response.txt index bc6f796a10..4dc801429e 100644 --- a/docs/ref/request-response.txt +++ b/docs/ref/request-response.txt @@ -200,11 +200,6 @@ application. ``urlconf`` can be set to ``None`` to revert any changes made by previous middleware and return to using the :setting:`ROOT_URLCONF`. - .. versionchanged:: 1.9 - - Setting ``urlconf=None`` raised - :exc:`~django.core.exceptions.ImproperlyConfigured` in older versions. - Attributes set by middleware ---------------------------- @@ -284,8 +279,6 @@ Methods .. method:: HttpRequest.get_port() - .. versionadded:: 1.9 - Returns the originating port of the request using information from the ``HTTP_X_FORWARDED_PORT`` (if :setting:`USE_X_FORWARDED_PORT` is enabled) and ``SERVER_PORT`` ``META`` variables, in that order. @@ -689,24 +682,17 @@ Attributes The :rfc:`HTTP status code <7231#section-6>` for the response. - .. versionchanged:: 1.9 - - Unless :attr:`reason_phrase` is explicitly set, modifying the value of - ``status_code`` outside the constructor will also modify the value of - ``reason_phrase``. + Unless :attr:`reason_phrase` is explicitly set, modifying the value of + ``status_code`` outside the constructor will also modify the value of + ``reason_phrase``. .. attribute:: HttpResponse.reason_phrase - The HTTP reason phrase for the response. - - .. versionchanged:: 1.9 - - ``reason_phrase`` no longer defaults to all capital letters. It now - uses the :rfc:`HTTP standard's <7231#section-6.1>` default reason - phrases. + The HTTP reason phrase for the response. It uses the :rfc:`HTTP standard's + <7231#section-6.1>` default reason phrases. - Unless explicitly set, ``reason_phrase`` is determined by the current - value of :attr:`status_code`. + Unless explicitly set, ``reason_phrase`` is determined by the value of + :attr:`status_code`. .. attribute:: HttpResponse.streaming @@ -962,10 +948,6 @@ types of HTTP responses. Like ``HttpResponse``, these subclasses live in The ``json_dumps_params`` parameter is a dictionary of keyword arguments to pass to the ``json.dumps()`` call used to generate the response. - .. versionchanged:: 1.9 - - The ``json_dumps_params`` argument was added. - Usage ----- @@ -976,7 +958,6 @@ Typical usage could look like:: >>> response.content b'{"foo": "bar"}' - Serializing non-dictionary objects ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -1058,24 +1039,17 @@ Attributes The :rfc:`HTTP status code <7231#section-6>` for the response. - .. versionchanged:: 1.9 - - Unless :attr:`reason_phrase` is explicitly set, modifying the value of - ``status_code`` outside the constructor will also modify the value of - ``reason_phrase``. + Unless :attr:`reason_phrase` is explicitly set, modifying the value of + ``status_code`` outside the constructor will also modify the value of + ``reason_phrase``. .. attribute:: StreamingHttpResponse.reason_phrase - The HTTP reason phrase for the response. - - .. versionchanged:: 1.9 - - ``reason_phrase`` no longer defaults to all capital letters. It now - uses the :rfc:`HTTP standard's <7231#section-6.1>` default reason - phrases. + The HTTP reason phrase for the response. It uses the :rfc:`HTTP standard's + <7231#section-6.1>` default reason phrases. - Unless explicitly set, ``reason_phrase`` is determined by the current - value of :attr:`status_code`. + Unless explicitly set, ``reason_phrase`` is determined by the value of + :attr:`status_code`. .. attribute:: StreamingHttpResponse.streaming |
