mirror of
https://github.com/django/django.git
synced 2025-01-08 17:37:20 +00:00
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(
|
||||
... timezone.now() - datetime.timedelta(hours=1),
|
||||
... timezone.now() + datetime.timedelta(hours=1),
|
||||
>>> 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
Block a user