summaryrefslogtreecommitdiff
path: root/docs/ref
diff options
context:
space:
mode:
authorMatt Austin <mail@mattaustin.me.uk>2013-09-12 21:27:35 +0800
committerAymeric Augustin <aymeric.augustin@m4x.org>2013-09-13 10:20:13 +0200
commita929adfd3b89056d83c34f729bedde78afec44db (patch)
tree5165d85f84d43552058f957092ea8e7cd1a09c95 /docs/ref
parent66e6e2d14663f78aacdd9df4e9e8c1c008b62459 (diff)
[1.6.x] Fixed #21095 -- Documented new requirement for dates lookups.
Day, month, and week_day lookups now require time zone definitions in the database. Backport of 9451d8d from master.
Diffstat (limited to 'docs/ref')
-rw-r--r--docs/ref/models/querysets.txt9
1 files changed, 6 insertions, 3 deletions
diff --git a/docs/ref/models/querysets.txt b/docs/ref/models/querysets.txt
index 138c8439f6..4fdea9b939 100644
--- a/docs/ref/models/querysets.txt
+++ b/docs/ref/models/querysets.txt
@@ -2232,7 +2232,8 @@ SQL equivalent::
(The exact SQL syntax varies for each database engine.)
When :setting:`USE_TZ` is ``True``, datetime fields are converted to the
-current time zone before filtering.
+current time zone before filtering. This requires :ref:`time zone definitions
+in the database <database-time-zone-definitions>`.
.. fieldlookup:: day
@@ -2255,7 +2256,8 @@ Note this will match any record with a pub_date on the third day of the month,
such as January 3, July 3, etc.
When :setting:`USE_TZ` is ``True``, datetime fields are converted to the
-current time zone before filtering.
+current time zone before filtering. This requires :ref:`time zone definitions
+in the database <database-time-zone-definitions>`.
.. fieldlookup:: week_day
@@ -2279,7 +2281,8 @@ Note this will match any record with a ``pub_date`` that falls on a Monday (day
are indexed with day 1 being Sunday and day 7 being Saturday.
When :setting:`USE_TZ` is ``True``, datetime fields are converted to the
-current time zone before filtering.
+current time zone before filtering. This requires :ref:`time zone definitions
+in the database <database-time-zone-definitions>`.
.. fieldlookup:: hour