class ListView(MultipleObjectTemplateResponseMixin, BaseListView): (source)
Render some list of objects, set by `self.model` or `self.queryset`. `self.queryset` can actually be any iterable of items, not just a queryset.
Inherited from MultipleObjectTemplateResponseMixin
:
Method | get |
Return a list of template names to be used for the request. Must return a list. May not be called if render_to_response is overridden. |
Class Variable | template |
Undocumented |
Inherited from TemplateResponseMixin
(via MultipleObjectTemplateResponseMixin
):
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 BaseListView
(via MultipleObjectTemplateResponseMixin
, TemplateResponseMixin
):
Method | get |
Undocumented |
Instance Variable | object |
Undocumented |
Inherited from MultipleObjectMixin
(via MultipleObjectTemplateResponseMixin
, TemplateResponseMixin
, BaseListView
):
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
(via MultipleObjectTemplateResponseMixin
, TemplateResponseMixin
, BaseListView
, MultipleObjectMixin
):
Class Variable | extra |
Undocumented |