class BaseMonthArchiveView(YearMixin, MonthMixin, BaseDateListView): (source)
Known subclasses: django.views.generic.MonthArchiveView
List of objects published in a given month.
Method | get |
Return (date_list, items, extra_context) for this request. |
Class Variable | date |
Undocumented |
Inherited from YearMixin
:
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 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 BaseDateListView
(via YearMixin
, MonthMixin
):
Method | get |
Undocumented |
Method | get |
Get a date list by calling `queryset.dates/datetimes()`, checking along the way for empty lists that aren't allowed. |
Method | get |
Get the aggregation period for the list of dates: 'year', 'month', or 'day'. |
Method | get |
Get a queryset properly filtered according to `allow_future` and any extra lookup kwargs. |
Method | get |
Return the field or fields to use for ordering the queryset; use the date field by default. |
Class Variable | allow |
Undocumented |
Instance Variable | date |
Undocumented |
Instance Variable | object |
Undocumented |
Inherited from MultipleObjectMixin
(via YearMixin
, MonthMixin
, BaseDateListView
):
Method | get |
Return ``True`` if the view should display empty lists and ``False`` if a 404 should be raised instead. |
Method | get |
Get the context for this view. |
Method | get |
Get the name of the item to be used in the context. |
Method | get |
Get the number of items to paginate by, or ``None`` for no pagination. |
Method | get |
Return the maximum number of orphans extend the last page by when paginating. |
Method | get |
Return an instance of the paginator for this view. |
Method | get |
Return the list of items for this view. |
Method | paginate |
Paginate the queryset, if needed. |
Class Variable | context |
Undocumented |
Class Variable | model |
Undocumented |
Class Variable | ordering |
Undocumented |
Class Variable | page |
Undocumented |
Class Variable | paginate |
Undocumented |
Class Variable | paginate |
Undocumented |
Class Variable | queryset |
Undocumented |
Inherited from ContextMixin
(via YearMixin
, MonthMixin
, BaseDateListView
, MultipleObjectMixin
):
Class Variable | extra |
Undocumented |
Inherited from DateMixin
(via YearMixin
, MonthMixin
, BaseDateListView
, MultipleObjectMixin
, ContextMixin
):
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. |