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), + ... ), ... ) ]>