summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas <616052+b0uh@users.noreply.github.com>2020-08-05 15:50:56 +0200
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2020-08-07 07:57:21 +0200
commit81ed126dffc31c71fb5a2b0c87970b7ffeb2cd31 (patch)
tree0501ef31d1d198a5f81dc6dcabb0b443b0190454
parent20ec568e46642920179378eecab5c94172f61e20 (diff)
[3.1.x] Fixed typo in docs/ref/contrib/postgres/fields.txt.
Backport of cdead4f013bc4d8f87fd714e91d5e1fcf419180f from master
-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 198ef1c284..c88c4a5096 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>]>