class BaseDateListView(MultipleObjectMixin, DateMixin, View):
Known subclasses: django.views.generic.dates.BaseArchiveIndexView
, django.views.generic.dates.BaseDayArchiveView
, django.views.generic.dates.BaseMonthArchiveView
, django.views.generic.dates.BaseWeekArchiveView
, django.views.generic.dates.BaseYearArchiveView
Method | get_date_list |
Get a date list by calling queryset.dates/datetimes() , checking along the way for empty lists that aren't allowed. |
Method | get_date_list_period |
Get the aggregation period for the list of dates: 'year', 'month', or 'day'. |
Method | get_dated_items |
Obtain the list of dates and items. |
Method | get_dated_queryset |
Get a queryset properly filtered according to allow_future and any extra lookup kwargs. |
Class Variable | allow_empty |
Undocumented |
Class Variable | date_list_period |
Undocumented |
Method | get |
Undocumented |
Method | get_ordering |
Return the field or fields to use for ordering the queryset; use the date field by default. |
Instance Variable | date_list |
Undocumented |
Instance Variable | object_list |
Undocumented |
Inherited from MultipleObjectMixin
:
Method | get_allow_empty |
Return True if the view should display empty lists and False if a 404 should be raised instead. |
Method | get_context_data |
Get the context for this view. |
Method | get_context_object_name |
Get the name of the item to be used in the context. |
Method | get_paginate_by |
Get the number of items to paginate by, or None for no pagination. |
Method | get_paginate_orphans |
Return the maximum number of orphans extend the last page by when paginating. |
Method | get_paginator |
Return an instance of the paginator for this view. |
Method | get_queryset |
Return the list of items for this view. |
Method | paginate_queryset |
Paginate the queryset, if needed. |
Class Variable | context_object_name |
Undocumented |
Class Variable | model |
Undocumented |
Class Variable | ordering |
Undocumented |
Class Variable | page_kwarg |
Undocumented |
Class Variable | paginate_by |
Undocumented |
Class Variable | paginate_orphans |
Undocumented |
Class Variable | queryset |
Undocumented |
Inherited from ContextMixin
(via MultipleObjectMixin
):
Class Variable | extra_context |
Undocumented |
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 . |
queryset.dates/datetimes()
, checking
along the way for empty lists that aren't allowed.django.views.generic.dates.BaseArchiveIndexView
, django.views.generic.dates.BaseDayArchiveView
, django.views.generic.dates.BaseMonthArchiveView
, django.views.generic.dates.BaseWeekArchiveView
, django.views.generic.dates.BaseYearArchiveView
allow_future
and any
extra lookup kwargs.str
=
django.views.generic.dates.BaseMonthArchiveView
, django.views.generic.dates.BaseYearArchiveView
Undocumented