class documentation

class DayMixin:

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

View In Hierarchy

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

Undocumented

day_format: str =

Undocumented

def _get_current_day(self, date):
Return the start date of the current interval.
def _get_next_day(self, date):

Return the start date of the next interval.

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