summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/contrib/postgres/fields.txt8
1 files changed, 5 insertions, 3 deletions
diff --git a/docs/ref/contrib/postgres/fields.txt b/docs/ref/contrib/postgres/fields.txt
index b81a49d4ea..cd3908cf2e 100644
--- a/docs/ref/contrib/postgres/fields.txt
+++ b/docs/ref/contrib/postgres/fields.txt
@@ -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>]>