summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorAymeric Augustin <aymeric.augustin@m4x.org>2012-05-01 11:29:20 +0200
committerAymeric Augustin <aymeric.augustin@m4x.org>2012-05-01 11:29:55 +0200
commit80c0cbf1c97047daed2c5b41b296bbc56fe1d7e3 (patch)
treebc925f3b5874b3ff4e23e60158dc44b5f3f97f8e /docs
parent46b082e05ccedffeb623028caf70adbaba7bce6f (diff)
Clarified warning about date-based generic views.
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/class-based-views.txt12
1 files changed, 9 insertions, 3 deletions
diff --git a/docs/ref/class-based-views.txt b/docs/ref/class-based-views.txt
index 5d308694e5..174539d162 100644
--- a/docs/ref/class-based-views.txt
+++ b/docs/ref/class-based-views.txt
@@ -750,9 +750,15 @@ DateMixin
When :doc:`time zone support </topics/i18n/timezones>` is enabled and
``date_field`` is a ``DateTimeField``, dates are assumed to be in the
- current time zone. As a consequence, if you have implemented per-user
- time zone selection, users living in different time zones may view a
- different set of objects at the same URL.
+ current time zone. Otherwise, the queryset could include objects from
+ the previous or the next day in the end user's time zone.
+
+ .. warning::
+
+ In this situation, if you have implemented per-user time zone
+ selection, the same URL may show a different set of objects,
+ depending on the end user's time zone. To avoid this, you should
+ use a ``DateField`` as the ``date_field`` attribute.
.. attribute:: allow_future