views.generic.list.MultipleObjectMixin.paginator_class

paginator_class The paginator class to be used for pagination. By default, django.core.paginator.Paginator is used. If the custom paginator class doesn’t have the same constructor interface as django.core.paginator.Paginator, you will also need to provide an implementation for get_paginator().

views.generic.list.MultipleObjectMixin.page_kwarg

page_kwarg A string specifying the name to use for the page parameter. The view will expect this parameter to be available either as a query string parameter (via request.GET) or as a kwarg variable specified in the URLconf. Defaults to page.

views.generic.list.MultipleObjectMixin.get_paginator()

get_paginator(queryset, per_page, orphans=0, allow_empty_first_page=True) Returns an instance of the paginator to use for this view. By default, instantiates an instance of paginator_class.

views.generic.list.MultipleObjectMixin.get_paginate_orphans()

get_paginate_orphans() An integer specifying the number of “overflow” objects the last page can contain. By default this simply returns the value of paginate_orphans.

views.generic.list.MultipleObjectMixin.get_context_object_name()

get_context_object_name(object_list) Return the context variable name that will be used to contain the list of data that this view is manipulating. If object_list is a queryset of Django objects and context_object_name is not set, the context name will be the model_name of the model that the queryset is composed from, with postfix '_list' appended. For example, the model Article would have a context object named article_list.

views.generic.list.MultipleObjectMixin.get_ordering()

get_ordering() Returns a string (or iterable of strings) that defines the ordering that will be applied to the queryset. Returns ordering by default.

views.generic.list.MultipleObjectMixin.get_queryset()

get_queryset() Get the list of items for this view. This must be an iterable and may be a queryset (in which queryset-specific behavior will be enabled).

views.generic.list.MultipleObjectMixin.get_paginate_by()

get_paginate_by(queryset) Returns the number of items to paginate by, or None for no pagination. By default this simply returns the value of paginate_by.

views.generic.list.MultipleObjectMixin.get_context_data()

get_context_data(**kwargs) Returns context data for displaying the list of objects. Context object_list: The list of objects that this view is displaying. If context_object_name is specified, that variable will also be set in the context, with the same value as object_list. is_paginated: A boolean representing whether the results are paginated. Specifically, this is set to False if no page size has been specified, or if the available objects do not span multiple pages. paginator: An insta

views.generic.list.MultipleObjectMixin

class django.views.generic.list.MultipleObjectMixin A mixin that can be used to display a list of objects. If paginate_by is specified, Django will paginate the results returned by this. You can specify the page number in the URL in one of two ways: Use the page parameter in the URLconf. For example, this is what your URLconf might look like: url(r'^objects/page(?P<page>[0-9]+)/$', PaginatedView.as_view()), Pass the page number via the page query-string parameter. For example, a UR