class documentation

Mixin for views manipulating year-based data.

Method get_next_year Get the next valid year.
Method get_previous_year Get the previous valid year.
Method get_year Return the year for which this view should display data.
Method get_year_format Get a year format string in strptime syntax to be used to parse the year from url variables.
Class Variable year Undocumented
Class Variable year_format Undocumented
Method _get_current_year Return the start date of the current interval.
Method _get_next_year Return the start date of the next interval.
def get_next_year(self, date): (source)

Get the next valid year.

def get_previous_year(self, date): (source)

Get the previous valid year.

def get_year(self): (source)

Return the year for which this view should display data.

def get_year_format(self): (source)

Get a year format string in strptime syntax to be used to parse the year from url variables.

Undocumented

year_format: str = (source)

Undocumented

def _get_current_year(self, date): (source)

Return the start date of the current interval.

def _get_next_year(self, date): (source)

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