1
0
mirror of https://github.com/django/django.git synced 2025-07-21 10:09:14 +00:00

[1.9.x] Corrected unrendered versionadded annotation.

This commit is contained in:
Tim Graham 2017-01-02 10:38:54 -05:00
parent 589a091b3b
commit 906b5dfd60

View File

@ -701,14 +701,13 @@ operators ``@>``, ``<@``, and ``&&`` respectively.
>>> Event.objects.filter(ages__contained_by=NumericRange(0, 15)) >>> Event.objects.filter(ages__contained_by=NumericRange(0, 15))
[<Event: Soft play>] [<Event: Soft play>]
.. versionadded 1.9 .. versionadded:: 1.9
The `contained_by` lookup is also available on the non-range field types: The ``contained_by`` lookup is also available on the non-range field types:
:class:`~django.db.models.fields.IntegerField`, :class:`~django.db.models.IntegerField`,
:class:`~django.db.models.fields.BigIntegerField`, :class:`~django.db.models.BigIntegerField`,
:class:`~django.db.models.fields.FloatField`, :class:`~django.db.models.FloatField`, :class:`~django.db.models.DateField`,
:class:`~django.db.models.fields.DateField`, and and :class:`~django.db.models.DateTimeField`. For example::
: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(