Kaydet (Commit) 80c0cbf1 authored tarafından Aymeric Augustin's avatar Aymeric Augustin

Clarified warning about date-based generic views.

üst 46b082e0
...@@ -750,9 +750,15 @@ DateMixin ...@@ -750,9 +750,15 @@ DateMixin
When :doc:`time zone support </topics/i18n/timezones>` is enabled and When :doc:`time zone support </topics/i18n/timezones>` is enabled and
``date_field`` is a ``DateTimeField``, dates are assumed to be in the ``date_field`` is a ``DateTimeField``, dates are assumed to be in the
current time zone. As a consequence, if you have implemented per-user current time zone. Otherwise, the queryset could include objects from
time zone selection, users living in different time zones may view a the previous or the next day in the end user's time zone.
different set of objects at the same URL.
.. 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 .. attribute:: allow_future
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment