﻿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
10181	Queryset raising EmptyResultSet exception (instead of being empty)	omat	nobody	"EmptyResultSet exception is fired in 'in' lookups, if the lookup is against an empty ValuesListQuerySet. 

{{{
>>> ids = Tag.objects.filter(id__in=[]).values_list(id, flat=True)
>>> Tag.objects.filter(id__in=ids)
}}}

ids is an empty ValuesListQuerySet, as expected. The second line raises EmptyResultSet exception, where I would expect an empty QuerySet instead. 
"		closed	Database layer (models, ORM)	dev		fixed	EmptyResultSet, ValuesListQuerySet		Accepted	0	0	0	0	0	0
