class DateDetailView(SingleObjectTemplateResponseMixin, BaseDateDetailView): (source)
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.
Class Variable | template |
Undocumented |
Inherited from SingleObjectTemplateResponseMixin
:
Method | get |
Return a list of template names to be used for the request. May not be called if render_to_response() is overridden. Return the following list: |
Class Variable | template |
Undocumented |
Inherited from TemplateResponseMixin
(via SingleObjectTemplateResponseMixin
):
Method | render |
Return a response, using the `response_class` for this view, with a template rendered with the given context. |
Class Variable | content |
Undocumented |
Class Variable | template |
Undocumented |
Class Variable | template |
Undocumented |
Inherited from BaseDateDetailView
(via SingleObjectTemplateResponseMixin
, TemplateResponseMixin
):
Method | get |
Get the object this request displays. |
Inherited from YearMixin
(via SingleObjectTemplateResponseMixin
, TemplateResponseMixin
, BaseDateDetailView
):
Method | get |
Get the next valid year. |
Method | get |
Get the previous valid year. |
Method | get |
Return the year for which this view should display data. |
Method | get |
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 |
Undocumented |
Method | _get |
Return the start date of the current interval. |
Method | _get |
Return the start date of the next interval. |
Inherited from MonthMixin
(via SingleObjectTemplateResponseMixin
, TemplateResponseMixin
, BaseDateDetailView
, YearMixin
):
Method | get |
Return the month for which this view should display data. |
Method | get |
Get a month format string in strptime syntax to be used to parse the month from url variables. |
Method | get |
Get the next valid month. |
Method | get |
Get the previous valid month. |
Class Variable | month |
Undocumented |
Class Variable | month |
Undocumented |
Method | _get |
Return the start date of the previous interval. |
Method | _get |
Return the start date of the next interval. |
Inherited from DayMixin
(via SingleObjectTemplateResponseMixin
, TemplateResponseMixin
, BaseDateDetailView
, YearMixin
, MonthMixin
):
Method | get |
Return the day for which this view should display data. |
Method | get |
Get a day format string in strptime syntax to be used to parse the day from url variables. |
Method | get |
Get the next valid day. |
Method | get |
Get the previous valid day. |
Class Variable | day |
Undocumented |
Class Variable | day |
Undocumented |
Method | _get |
Return the start date of the current interval. |
Method | _get |
Return the start date of the next interval. |
Inherited from DateMixin
(via SingleObjectTemplateResponseMixin
, TemplateResponseMixin
, BaseDateDetailView
, YearMixin
, MonthMixin
, DayMixin
):
Method | get |
Return `True` if the view should be allowed to display objects from the future. |
Method | get |
Get the name of the date field to be used to filter by. |
Class Variable | allow |
Undocumented |
Class Variable | date |
Undocumented |
Property | uses |
Return `True` if the date field is a `DateTimeField` and `False` if it's a `DateField`. |
Method | _make |
Convert a date into a datetime when the date field is a DateTimeField. |
Method | _make |
Get the lookup kwargs for filtering on a single date. |
Inherited from BaseDetailView
(via SingleObjectTemplateResponseMixin
, TemplateResponseMixin
, BaseDateDetailView
, YearMixin
, MonthMixin
, DayMixin
, DateMixin
):
Method | get |
Undocumented |
Instance Variable | object |
Undocumented |
Inherited from SingleObjectMixin
(via SingleObjectTemplateResponseMixin
, TemplateResponseMixin
, BaseDateDetailView
, YearMixin
, MonthMixin
, DayMixin
, DateMixin
, BaseDetailView
):
Method | get |
Insert the single object into the context dict. |
Method | get |
Get the name to use for the object. |
Method | get |
Return the `QuerySet` that will be used to look up the object. |
Method | get |
Get the name of a slug field to be used to look up by slug. |
Class Variable | context |
Undocumented |
Class Variable | model |
Undocumented |
Class Variable | pk |
Undocumented |
Class Variable | query |
Undocumented |
Class Variable | queryset |
Undocumented |
Class Variable | slug |
Undocumented |
Class Variable | slug |
Undocumented |
Inherited from ContextMixin
(via SingleObjectTemplateResponseMixin
, TemplateResponseMixin
, BaseDateDetailView
, YearMixin
, MonthMixin
, DayMixin
, DateMixin
, BaseDetailView
, SingleObjectMixin
):
Class Variable | extra |
Undocumented |