summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2017-01-02 10:38:54 -0500
committerTim Graham <timograham@gmail.com>2017-01-02 10:52:16 -0500
commit906b5dfd6091c21aaf78935d7fc4a7d87d3ef5eb (patch)
tree7bf5165ca61611fd6d2bec15b3cecd48ff0b6765 /docs
parent589a091b3bf70a379c0f96dbdce700e6756f4a36 (diff)
[1.9.x] Corrected unrendered versionadded annotation.
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/contrib/postgres/fields.txt13
1 files changed, 6 insertions, 7 deletions
diff --git a/docs/ref/contrib/postgres/fields.txt b/docs/ref/contrib/postgres/fields.txt
index a70cebea08..9149218a58 100644
--- a/docs/ref/contrib/postgres/fields.txt
+++ b/docs/ref/contrib/postgres/fields.txt
@@ -701,14 +701,13 @@ operators ``@>``, ``<@``, and ``&&`` respectively.
>>> Event.objects.filter(ages__contained_by=NumericRange(0, 15))
[<Event: Soft play>]
-.. versionadded 1.9
+.. versionadded:: 1.9
- The `contained_by` lookup is also available on the non-range field types:
- :class:`~django.db.models.fields.IntegerField`,
- :class:`~django.db.models.fields.BigIntegerField`,
- :class:`~django.db.models.fields.FloatField`,
- :class:`~django.db.models.fields.DateField`, and
- :class:`~django.db.models.fields.DateTimeField`. For example::
+The ``contained_by`` lookup is also available on the non-range field types:
+:class:`~django.db.models.IntegerField`,
+:class:`~django.db.models.BigIntegerField`,
+:class:`~django.db.models.FloatField`, :class:`~django.db.models.DateField`,
+and :class:`~django.db.models.DateTimeField`. For example::
>>> from psycopg2.extras import DateTimeTZRange
>>> Event.objects.filter(start__contained_by=DateTimeTZRange(