class documentation

class MonthMixin:

Known subclasses: django.views.generic.dates.BaseDateDetailView, django.views.generic.dates.BaseDayArchiveView, django.views.generic.dates.BaseMonthArchiveView

View In Hierarchy

Mixin for views manipulating month-based data.
Method get​_month Return the month for which this view should display data.
Method get​_month​_format Get a month format string in strptime syntax to be used to parse the month from url variables.
Method get​_next​_month Get the next valid month.
Method get​_previous​_month Get the previous valid month.
Class Variable month Undocumented
Class Variable month​_format Undocumented
Method ​_get​_current​_month Return the start date of the previous interval.
Method ​_get​_next​_month Return the start date of the next interval.
def get_month(self):
Return the month for which this view should display data.
def get_month_format(self):
Get a month format string in strptime syntax to be used to parse the month from url variables.
def get_next_month(self, date):
Get the next valid month.
def get_previous_month(self, date):
Get the previous valid month.
month =

Undocumented

month_format: str =

Undocumented

def _get_current_month(self, date):
Return the start date of the previous interval.
def _get_next_month(self, date):

Return the start date of the next interval.

The interval is defined by start date <= item date < next start date.