diff options
| author | Tim Graham <timograham@gmail.com> | 2017-01-02 10:38:54 -0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-01-02 10:51:01 -0500 |
| commit | fe409c22e17562db8779a8fc11836a3bd29a160e (patch) | |
| tree | 63610631cb260ec66a3989a05db3e99755059f1d /docs/ref | |
| parent | b0eee991e875656f81efaeb620a8642c02078770 (diff) | |
[1.10.x] Corrected unrendered versionadded annotation.
Diffstat (limited to 'docs/ref')
| -rw-r--r-- | docs/ref/contrib/postgres/fields.txt | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/docs/ref/contrib/postgres/fields.txt b/docs/ref/contrib/postgres/fields.txt index 29e4013f68..54ab7fc174 100644 --- a/docs/ref/contrib/postgres/fields.txt +++ b/docs/ref/contrib/postgres/fields.txt @@ -682,14 +682,13 @@ operators ``@>``, ``<@``, and ``&&`` respectively. >>> Event.objects.filter(ages__contained_by=NumericRange(0, 15)) <QuerySet [<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( |
