views.generic.dates.BaseDateListView.date_list_period

date_list_period Optional A string defining the aggregation period for date_list. It must be one of 'year' (default), 'month', or 'day'.

views.generic.dates.BaseDateListView.get_dated_items()

get_dated_items() [source] Returns a 3-tuple containing (date_list, object_list, extra_context). date_list is the list of dates for which data is available. object_list is the list of objects. extra_context is a dictionary of context data that will be added to any context data provided by the MultipleObjectMixin.

views.generic.dates.BaseDateListView.get_dated_queryset()

get_dated_queryset(**lookup) [source] Returns a queryset, filtered using the query arguments defined by lookup. Enforces any restrictions on the queryset, such as allow_empty and allow_future.

views.generic.dates.BaseDateListView.get_date_list()

get_date_list(queryset, date_type=None, ordering='ASC') [source] Returns the list of dates of type date_type for which queryset contains entries. For example, get_date_list(qs, 'year') will return the list of years for which qs has entries. If date_type isn’t provided, the result of get_date_list_period() is used. date_type and ordering are simply passed to QuerySet.dates().

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.

views.generic.dates.BaseDayArchiveView

class BaseDayArchiveView [source]

views.generic.dates.BaseMonthArchiveView

class BaseMonthArchiveView [source]

views.generic.dates.BaseTodayArchiveView

class BaseTodayArchiveView [source]

views.generic.dates.BaseWeekArchiveView

class BaseWeekArchiveView [source]

views.generic.dates.BaseYearArchiveView

class BaseYearArchiveView [source]