﻿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
17350	in_bulk should use duck typing so that listy-objects can be used, like ValuesListQuerySet	umbrae@…	nobody	"Currently, using a ValuesListQuerySet as a parameter to in_bulk returns an exception, even with flat=True:

{{{
AssertionError: in_bulk() must be provided with a list of IDs.
}}}


This is due to this line in query.py (line 416 in 1.3) :

{{{
assert isinstance(id_list, (tuple,  list, set, frozenset)), \
                ""in_bulk() must be provided with a list of IDs.
}}}

Which requires a certain type, rather than just something that can be iterated upon. I think it'd be more valuable if it was just something iterable, like ValuesListQuerySet is.
"	New feature	closed	Database layer (models, ORM)	1.3	Normal	worksforme	queryset, valueslistqueryset, db	umbrae@…	Unreviewed	0	0	0	0	1	0
