class ListView(MultipleObjectTemplateResponseMixin, BaseListView):
self.model
or self.queryset
.
self.queryset
can actually be any iterable of items, not just a queryset.
Inherited from MultipleObjectTemplateResponseMixin
:
Method | get_template_names |
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_name_suffix |
Undocumented |
Inherited from TemplateResponseMixin
(via MultipleObjectTemplateResponseMixin
):
Method | render_to_response |
Return a response, using the response_class for this view, with a template rendered with the given context. |
Class Variable | content_type |
Undocumented |
Class Variable | template_engine |
Undocumented |
Class Variable | template_name |
Undocumented |
Inherited from BaseListView
:
Method | get |
Undocumented |
Instance Variable | object_list |
Undocumented |
Inherited from MultipleObjectMixin
(via BaseListView
):
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_ordering |
Return the field or fields to use for ordering the queryset. |
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 | allow_empty |
Undocumented |
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 BaseListView
, MultipleObjectMixin
):
Class Variable | extra_context |
Undocumented |