Fixed typo in docs/ref/contrib/postgres/fields.txt.
This commit is contained in:
parent
0a306f7da6
commit
cdead4f013
|
@ -668,9 +668,11 @@ The ``contained_by`` lookup is also available on the non-range field types:
|
|||
:class:`~django.db.models.DateTimeField`. For example::
|
||||
|
||||
>>> from psycopg2.extras import DateTimeTZRange
|
||||
>>> Event.objects.filter(start__contained_by=DateTimeTZRange(
|
||||
>>> Event.objects.filter(
|
||||
... start__contained_by=DateTimeTZRange(
|
||||
... timezone.now() - datetime.timedelta(hours=1),
|
||||
... timezone.now() + datetime.timedelta(hours=1),
|
||||
... ),
|
||||
... )
|
||||
<QuerySet [<Event: Soft play>]>
|
||||
|
||||
|
|
Loading…
Reference in New Issue