﻿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
2400	allow querying of existance of backwards relationship without resorting to custom sql	mattimustang@…	nobody	"Both of these threads cover the same issue:

http://groups.google.com/group/django-users/browse_frm/thread/98b7aedf8f9d806c

http://groups.google.com/group/django-users/browse_frm/thread/b129d64b1ed77e28

To summarize, I can get all Reporters who have associated Articles by doing: 

{{{
        Reporter.objects.filter(article__isnull = False) 
}}}

But, I can't get Reporters who have *no* associated Article by doing:

{{{
        Reporter.objects.filter(article__isnull = True) 
}}}

as it returns an empty list, since the article property does not exist for 
those Reporters, and thus, it can't even be null.

Furthermore, being able to do the same in limit_choices_to would be extremely useful.

"	enhancement	closed	Core (Other)	dev	normal	fixed	qs-rf-fixed	mattimustang@… tyson@…	Accepted	0	0	0	0	0	0
