class documentation
class MultipleObjectMixin(ContextMixin): (source)
Known subclasses: django.views.generic.dates.BaseDateListView
, django.views.generic.list.BaseListView
A mixin for views manipulating multiple objects.
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 |
Return the field or fields to use for ordering the queryset. |
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 | allow |
Undocumented |
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
:
Class Variable | extra |
Undocumented |
Return ``True`` if the view should display empty lists and ``False`` if a 404 should be raised instead.
overridden in
django.views.generic.dates.BaseDateListView
Return the field or fields to use for ordering the queryset.
def get_paginator(self, queryset, per_page, orphans=0, allow_empty_first_page=True, **kwargs):
(source)
¶
Return an instance of the paginator for this view.
Return the list of items for this view. The return value must be an iterable and may be an instance of `QuerySet` in which case `QuerySet` specific behavior will be enabled.