﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
20235	MultipleObjectMixin requires object_list to be passed in rather than using self.object_list	Matthew Somerville	Markus Holtermann	"Unlike SingleObjectMixin, which uses self.object in its get_context_data, MultipleObjectMixin requires that object_list is passed in to get_context_data as a kwarg. BaseListView does this, but using MultipleObjectMixin separately requires this knowledge, not documented on the mixin page at https://docs.djangoproject.com/en/dev/ref/class-based-views/mixins-multiple-object/#django.views.generic.list.MultipleObjectMixin . It is alluded to at https://docs.djangoproject.com/en/dev/ref/class-based-views/generic-display/#django.views.generic.list.BaseListView but I don't think this is clear, and I think having it in MultipleObjectMixin is a better location, as with SingleObjectMixin.

As I assume MultipleObjectMixin is in use already with its current behaviour, I believe the nicest fix is to add a default to the pop() so that MultipleObjectMixin can be used by setting self.object_list in your subclass, the same as with SingleObjectMixin and self.object.

I have a patch on a branch of my github fork: https://github.com/dracos/django/compare/multipleobjectfixin"	Cleanup/optimization	closed	Generic views	dev	Normal	fixed		tinodb	Accepted	1	0	0	1	0	0
