views.generic.dates.YearMixin.get_next_year()

get_next_year(date) [source] Returns a date object containing the first day of the year after the date provided. This function can also return None or raise an Http404 exception, depending on the values of allow_empty and allow_future.

views.generic.dates.WeekMixin.week_format

week_format The strftime() format to use when parsing the week. By default, this is '%U', which means the week starts on Sunday. Set it to '%W' if your week starts on Monday.

views.generic.dates.WeekMixin.week

week Optional The value for the week, as a string. By default, set to None, which means the week will be determined using other means.

views.generic.dates.YearArchiveView.get_make_object_list()

get_make_object_list() Determine if an object list will be returned as part of the context. Returns make_object_list by default. Context In addition to the context provided by django.views.generic.list.MultipleObjectMixin (via django.views.generic.dates.BaseDateListView), the template’s context will be: date_list: A QuerySet object containing all months that have objects available according to queryset, represented as datetime.datetime objects, in ascending order. year: A date object repre

views.generic.dates.YearArchiveView

class YearArchiveView [source] A yearly archive page showing all available months in a given year. Objects with a date in the future are not displayed unless you set allow_future to True. Ancestors (MRO) django.views.generic.list.MultipleObjectTemplateResponseMixin django.views.generic.base.TemplateResponseMixin django.views.generic.dates.BaseYearArchiveView django.views.generic.dates.YearMixin django.views.generic.dates.BaseDateListView django.views.generic.list.MultipleObjectMixin django.v

views.generic.dates.WeekMixin.get_prev_week()

get_prev_week(date) Returns a date object containing the first day of the week before the date provided. This function can also return None or raise an Http404 exception, depending on the values of allow_empty and allow_future.

views.generic.dates.WeekArchiveView

class WeekArchiveView [source] A weekly archive page showing all objects in a given week. Objects with a date in the future are not displayed unless you set allow_future to True. Ancestors (MRO) django.views.generic.list.MultipleObjectTemplateResponseMixin django.views.generic.base.TemplateResponseMixin django.views.generic.dates.BaseWeekArchiveView django.views.generic.dates.YearMixin django.views.generic.dates.WeekMixin django.views.generic.dates.BaseDateListView django.views.generic.list.

views.generic.dates.WeekMixin.get_week()

get_week() [source] Returns the week for which this view will display data, as a string. Tries the following sources, in order: The value of the WeekMixin.week attribute. The value of the week argument captured in the URL pattern The value of the week GET query argument. Raises a 404 if no valid week specification can be found.

views.generic.dates.WeekMixin

class WeekMixin [source] A mixin that can be used to retrieve and provide parsing information for a week component of a date. Methods and Attributes week_format The strftime() format to use when parsing the week. By default, this is '%U', which means the week starts on Sunday. Set it to '%W' if your week starts on Monday. week Optional The value for the week, as a string. By default, set to None, which means the week will be determined using other means. get_week_format() [sourc

views.generic.dates.WeekMixin.get_week_format()

get_week_format() [source] Returns the strftime() format to use when parsing the week. Returns week_format by default.