views.generic.dates.DateMixin
  • References/Python/Django/API/Date-based mixins

class DateMixin [source] A mixin class providing common behavior for all date-based views

2025-01-10 15:47:30
views.generic.dates.WeekMixin.get_week()
  • References/Python/Django/API/Date-based mixins

get_week() [source] Returns the week for which this view will display data, as a string.

2025-01-10 15:47:30
views.generic.dates.YearMixin.get_year_format()
  • References/Python/Django/API/Date-based mixins

get_year_format() [source] Returns the

2025-01-10 15:47:30
views.generic.dates.WeekMixin.week
  • References/Python/Django/API/Date-based mixins

week Optional The value for the week, as a string. By default, set to None, which means the week

2025-01-10 15:47:30
views.generic.dates.WeekMixin.week_format
  • References/Python/Django/API/Date-based mixins

week_format The

2025-01-10 15:47:30
views.generic.dates.WeekMixin
  • References/Python/Django/API/Date-based mixins

class WeekMixin [source] A mixin that can be used to retrieve and provide parsing information

2025-01-10 15:47:30
views.generic.dates.YearMixin
  • References/Python/Django/API/Date-based mixins

class YearMixin [source] A mixin that can be used to retrieve and provide parsing information

2025-01-10 15:47:30
views.generic.dates.DayMixin.day
  • References/Python/Django/API/Date-based mixins

day Optional The value for the day, as a string. By default, set to None, which means the day

2025-01-10 15:47:30
views.generic.dates.WeekMixin.get_week_format()
  • References/Python/Django/API/Date-based mixins

get_week_format() [source] Returns the

2025-01-10 15:47:30
views.generic.dates.YearMixin.get_previous_year()
  • References/Python/Django/API/Date-based mixins

get_previous_year(date) [source] Returns a date object containing the first day of the year

2025-01-10 15:47:30