﻿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
10665	contrib.admin.ModelAdmin.list_filter filter by Null ForeignKey (no clear UI to filter to show only NULL values)	Daniel Kahn Gillmor	nobody	"Consider a model `foo` with a boolean field `status` and a Nullable foreign key named `bar`.  Let's say we have:

{{{
class FooAdmin(admin.ModelAdmin):
  list_filter = ('status', 'bar')
}}}

In this event, the admin list view allows filtering on the right-hand side based on which `bar` element is linked.  But it does not seem to allow the user to filter to show only `foo` items which have a NULL for `bar`.  

I'm encountering this while running django 1.0.2-1 (as shipped in debian's [http://packages.qa.debian.org/python-django python-django] package).  This seems like it would be a pretty commonly desired query (e.g. ""show me all customers with no assigned sales agent"", or ""show me all students with no advisor""), so i think it would be a useful addition.

See Also: This seems similar (yet not identical) to the issue raised in #7582."		closed	contrib.admin	1.0		duplicate	list_filter		Unreviewed	0	0	0	0	0	0
