Skip to content

Commit 906b5df

Browse files
committed
[1.9.x] Corrected unrendered versionadded annotation.
1 parent 589a091 commit 906b5df

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

docs/ref/contrib/postgres/fields.txt

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -701,14 +701,13 @@ operators ``@>``, ``<@``, and ``&&`` respectively.
701701
>>> Event.objects.filter(ages__contained_by=NumericRange(0, 15))
702702
[<Event: Soft play>]
703703

704-
.. versionadded 1.9
705-
706-
The `contained_by` lookup is also available on the non-range field types:
707-
:class:`~django.db.models.fields.IntegerField`,
708-
:class:`~django.db.models.fields.BigIntegerField`,
709-
:class:`~django.db.models.fields.FloatField`,
710-
:class:`~django.db.models.fields.DateField`, and
711-
:class:`~django.db.models.fields.DateTimeField`. For example::
704+
.. versionadded:: 1.9
705+
706+
The ``contained_by`` lookup is also available on the non-range field types:
707+
:class:`~django.db.models.IntegerField`,
708+
:class:`~django.db.models.BigIntegerField`,
709+
:class:`~django.db.models.FloatField`, :class:`~django.db.models.DateField`,
710+
and :class:`~django.db.models.DateTimeField`. For example::
712711

713712
>>> from psycopg2.extras import DateTimeTZRange
714713
>>> Event.objects.filter(start__contained_by=DateTimeTZRange(

0 commit comments

Comments
 (0)