mirror of
https://github.com/django/django.git
synced 2024-12-23 01:25:58 +00:00
Clarified warning about date-based generic views.
This commit is contained in:
parent
46b082e05c
commit
80c0cbf1c9
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user