summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorMichael <michael-k@users.noreply.github.com>2017-09-04 18:40:56 +0000
committerTim Graham <timograham@gmail.com>2017-09-04 14:40:56 -0400
commit3f2b1d926bb3a72b4c3d2cd958455ebb9b4ca458 (patch)
treed9d89d7425ccfecd742891aa98a4af86f459d3f7 /docs
parent5848305218a08eb0c0a32086813d14dc6f46b463 (diff)
Fixed #28568 -- Fixed typo in docs/ref/models/database-functions.txt.
And made an example use naming consistent with the rest of the doc.
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/models/database-functions.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/ref/models/database-functions.txt b/docs/ref/models/database-functions.txt
index 544c147ed2..875786c640 100644
--- a/docs/ref/models/database-functions.txt
+++ b/docs/ref/models/database-functions.txt
@@ -532,8 +532,8 @@ the Melbourne timezone (UTC +10:00), which changes the day, weekday, and hour
values that are returned::
>>> import pytz
- >>> tzinfo = pytz.timezone('Australia/Melbourne') # UTC+10:00
- >>> with timezone.override(tzinfo):
+ >>> melb = pytz.timezone('Australia/Melbourne') # UTC+10:00
+ >>> with timezone.override(melb):
... Experiment.objects.annotate(
... day=ExtractDay('start_datetime'),
... weekday=ExtractWeekDay('start_datetime'),
@@ -547,7 +547,7 @@ Explicitly passing the timezone to the ``Extract`` function behaves in the same
way, and takes priority over an active timezone::
>>> import pytz
- >>> tzinfo = pytz.timezone('Australia/Melbourne')
+ >>> melb = pytz.timezone('Australia/Melbourne')
>>> Experiment.objects.annotate(
... day=ExtractDay('start_datetime', tzinfo=melb),
... weekday=ExtractWeekDay('start_datetime', tzinfo=melb),