views.generic.list.MultipleObjectMixin.get_allow_empty()
  • References/Python/Django/API/Multiple object mixins

get_allow_empty() Return a boolean specifying whether to display the page if no objects are available. If this method returns

2025-01-10 15:47:30
views.generic.list.MultipleObjectMixin.model
  • References/Python/Django/API/Multiple object mixins

model The model that this view will display data for. Specifying model = Foo is effectively the same as specifying

2025-01-10 15:47:30
views.generic.list.MultipleObjectMixin.page_kwarg
  • References/Python/Django/API/Multiple object mixins

page_kwarg A string specifying the name to use for the page parameter. The view will expect this parameter to be available either

2025-01-10 15:47:30
views.generic.list.MultipleObjectMixin.allow_empty
  • References/Python/Django/API/Multiple object mixins

allow_empty A boolean specifying whether to display the page if no objects are available. If this is False and

2025-01-10 15:47:30
views.generic.list.MultipleObjectMixin.get_paginate_by()
  • References/Python/Django/API/Multiple object mixins

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

2025-01-10 15:47:30
views.generic.list.MultipleObjectTemplateResponseMixin.template_name_suffix
  • References/Python/Django/API/Multiple object mixins

template_name_suffix The suffix to append to the auto-generated candidate template name. Default suffix is _list

2025-01-10 15:47:30
views.generic.list.MultipleObjectMixin.get_context_object_name()
  • References/Python/Django/API/Multiple object mixins

get_context_object_name(object_list) Return the context variable name that will be used to contain the list of data that this

2025-01-10 15:47:30
views.generic.list.MultipleObjectTemplateResponseMixin
  • References/Python/Django/API/Multiple object mixins

class django.views.generic.list.MultipleObjectTemplateResponseMixin A mixin class that performs template-based response rendering

2025-01-10 15:47:30
views.generic.list.MultipleObjectMixin.context_object_name
  • References/Python/Django/API/Multiple object mixins

context_object_name Designates the name of the variable to use in the context.

2025-01-10 15:47:30
views.generic.list.MultipleObjectMixin.queryset
  • References/Python/Django/API/Multiple object mixins

queryset A QuerySet that represents the objects. If provided, the value of queryset supersedes the

2025-01-10 15:47:30