class documentation

class BaseDateDetailView(YearMixin, MonthMixin, DayMixin, DateMixin, BaseDetailView):

Known subclasses: django.views.generic.DateDetailView

View In Hierarchy

Detail view of a single object on a single date; this differs from the standard DetailView by accepting a year/month/day in the URL.
Method get​_object Get the object this request displays.

Inherited from YearMixin:

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.

Inherited from MonthMixin:

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.

Inherited from DayMixin:

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.

Inherited from DateMixin:

Method get​_allow​_future Return True if the view should be allowed to display objects from the future.
Method get​_date​_field Get the name of the date field to be used to filter by.
Class Variable allow​_future Undocumented
Class Variable date​_field Undocumented
Method ​_make​_date​_lookup​_arg Convert a date into a datetime when the date field is a DateTimeField.
Method ​_make​_single​_date​_lookup Get the lookup kwargs for filtering on a single date.
Property uses​_datetime​_field Return True if the date field is a DateTimeField and False if it's a DateField.

Inherited from BaseDetailView:

Method get Undocumented
Instance Variable object Undocumented

Inherited from SingleObjectMixin (via BaseDetailView):

Method get​_context​_data Insert the single object into the context dict.
Method get​_context​_object​_name Get the name to use for the object.
Method get​_queryset Return the QuerySet that will be used to look up the object.
Method get​_slug​_field Get the name of a slug field to be used to look up by slug.
Class Variable context​_object​_name Undocumented
Class Variable model Undocumented
Class Variable pk​_url​_kwarg Undocumented
Class Variable query​_pk​_and​_slug Undocumented
Class Variable queryset Undocumented
Class Variable slug​_field Undocumented
Class Variable slug​_url​_kwarg Undocumented

Inherited from ContextMixin (via BaseDetailView, SingleObjectMixin):

Class Variable extra​_context Undocumented
def get_object(self, queryset=None):
Get the object this request displays.