﻿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
17242	Kwargs are not in the context if you inherit from BaseListView or it's subclasses	Fact Fiber	nobody	"**Description**:

The problem occurs when you inherit from BaseListView (or a view that inherits from it) and you assume that context contains kwargs. This is a fair assumption as MultipleObjectMixin.get_context_data() contains:

{{{
context.update(kwargs)
}}}

Kwargs should be passed to self.get_context_data() in BaseListView and they're not. Therefore the mentioned line of code code in MultipleObjectMixin doesn't have any effect.

This looks like a bug as MultipleObjectMixin.get_context_data() which is exactly the one called in BaseListView uses kwargs to update the context, but the kwargs are not passed so this breaks the chain.

**Steps to reproduce**:

* Inherit from BaseListView (or its subclasses, e.g. ListView).
* Update kwargs in your view
* Kwargs should be available in the context

**Proposed solution:**

BaseListView's get() should pass kwargs to get_context_data()

**Patch:**

The proposed patch is attached
"	Bug	closed	Generic views	dev	Normal	invalid	generic views list baselistview kwargs	dev@…	Accepted	1	0	0	0	1	0
