views.generic.dates.DateMixin.date_field

date_field The name of the DateField or DateTimeField in the QuerySet’s model that the date-based archive should use to determine the list of objects to display on the page. When time zone support is enabled and date_field is a DateTimeField, dates are assumed to be in the 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

views.generic.dates.DateMixin.allow_future

allow_future A boolean specifying whether to include “future” objects on this page, where “future” means objects in which the field specified in date_field is greater than the current date/time. By default, this is False.

views.generic.dates.DateMixin

class DateMixin [source] A mixin class providing common behavior for all date-based views. Methods and Attributes date_field The name of the DateField or DateTimeField in the QuerySet’s model that the date-based archive should use to determine the list of objects to display on the page. When time zone support is enabled and date_field is a DateTimeField, dates are assumed to be in the current time zone. Otherwise, the queryset could include objects from the previous or the next day in the

views.generic.dates.DateDetailView

class DateDetailView [source] A page representing an individual object. If the object has a date value in the future, the view will throw a 404 error by default, unless you set allow_future to True. Ancestors (MRO) django.views.generic.detail.SingleObjectTemplateResponseMixin django.views.generic.base.TemplateResponseMixin django.views.generic.dates.BaseDateDetailView django.views.generic.dates.YearMixin django.views.generic.dates.MonthMixin django.views.generic.dates.DayMixin django.views.g

views.generic.dates.BaseYearArchiveView

class BaseYearArchiveView [source]

views.generic.dates.BaseWeekArchiveView

class BaseWeekArchiveView [source]

views.generic.dates.BaseTodayArchiveView

class BaseTodayArchiveView [source]

views.generic.dates.BaseMonthArchiveView

class BaseMonthArchiveView [source]

views.generic.dates.BaseDayArchiveView

class BaseDayArchiveView [source]

views.generic.dates.BaseDateListView.get_date_list_period()

get_date_list_period() [source] Returns the aggregation period for date_list. Returns date_list_period by default.