1
0
mirror of https://github.com/django/django.git synced 2024-12-22 17:16:24 +00:00

Removed obsolete versionadded/changed annotations.

This commit is contained in:
Tim Graham 2017-01-02 10:38:54 -05:00
parent ed4264c5a4
commit f996f73667
2 changed files with 5 additions and 13 deletions

View File

@ -718,14 +718,11 @@ operators ``@>``, ``<@``, and ``&&`` respectively.
>>> Event.objects.filter(ages__contained_by=NumericRange(0, 15)) >>> Event.objects.filter(ages__contained_by=NumericRange(0, 15))
<QuerySet [<Event: Soft play>]> <QuerySet [<Event: Soft play>]>
.. versionadded 1.9 The ``contained_by`` lookup is also available on the non-range field types:
:class:`~django.db.models.IntegerField`,
The `contained_by` lookup is also available on the non-range field types: :class:`~django.db.models.BigIntegerField`,
:class:`~django.db.models.fields.IntegerField`, :class:`~django.db.models.FloatField`, :class:`~django.db.models.DateField`,
:class:`~django.db.models.fields.BigIntegerField`, and :class:`~django.db.models.DateTimeField`. For example::
:class:`~django.db.models.fields.FloatField`,
:class:`~django.db.models.fields.DateField`, and
:class:`~django.db.models.fields.DateTimeField`. For example::
>>> from psycopg2.extras import DateTimeTZRange >>> from psycopg2.extras import DateTimeTZRange
>>> Event.objects.filter(start__contained_by=DateTimeTZRange( >>> Event.objects.filter(start__contained_by=DateTimeTZRange(

View File

@ -75,11 +75,6 @@ need to distinguish caches by the ``Accept-language`` header.
Adds a ``Cache-Control: max-age=0, no-cache, no-store, must-revalidate`` Adds a ``Cache-Control: max-age=0, no-cache, no-store, must-revalidate``
header to a response to indicate that a page should never be cached. header to a response to indicate that a page should never be cached.
.. versionchanged:: 1.8.8
In older versions, ``Cache-Control: max-age=0`` was sent. This didn't
reliably prevent caching in all browsers.
.. function:: patch_vary_headers(response, newheaders) .. function:: patch_vary_headers(response, newheaders)
Adds (or updates) the ``Vary`` header in the given ``HttpResponse`` object. Adds (or updates) the ``Vary`` header in the given ``HttpResponse`` object.