diff --git a/docs/ref/models/database-functions.txt b/docs/ref/models/database-functions.txt index a34af020b4..2273244542 100644 --- a/docs/ref/models/database-functions.txt +++ b/docs/ref/models/database-functions.txt @@ -681,16 +681,12 @@ Usage example: ... trunc_start=TruncSecond("start_datetime") ... ).filter(trunc_start__lte=start) >>> find_this_exp.count() - ... 0 # We expect to find one result but 0 are found - >>> start_adjusted = timezone.localtime(start).replace( - ... tzinfo=zoneinfo.ZoneInfo(key='UTC') - ... ) + >>> start_adjusted = timezone.localtime(start).replace(tzinfo=zoneinfo.ZoneInfo(key="UTC")) >>> find_this_exp_adjusted = Experiment.objects.annotate( ... trunc_start=TruncSecond("start_datetime") ... ).filter(trunc_start__lte=start_adjusted) >>> find_this_exp.count() - ... 1 ``DateField`` truncation