﻿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
24256	No easy way to access the filtered queryset from admin.SimpleListFilter	Tomas Babej	nobody	"I have a simple goal - I want to build a admin.SimpleListFilter, which offers in the lookups method only those choices which are relevant to the current user selection.

The lookups() method gets passed the ModelAdmin instance via model_admin argument, however, calling

{{{
queryset = model_admin.get_queryset()
}}}

will return only the unfiltered queryset.  There is no easy way how to get the filtered queryset, since that is defined in the ChangeView class, one is only left to duplicate much of the logic of that class to get the filtered queryset."	New feature	closed	contrib.admin	1.7	Normal	needsinfo		Tomas Babej	Unreviewed	0	0	0	0	0	0
