mirror of
https://github.com/django/django.git
synced 2025-10-30 00:56:09 +00:00
Fixed #15647 -- Changed in_bulk() not to type check its input, which now allows for passing any iterable. Thanks, calvinspealman
git-svn-id: http://code.djangoproject.com/svn/django/trunk@15922 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -413,8 +413,6 @@ class QuerySet(object):
|
||||
"""
|
||||
assert self.query.can_filter(), \
|
||||
"Cannot use 'limit' or 'offset' with in_bulk"
|
||||
assert isinstance(id_list, (tuple, list, set, frozenset)), \
|
||||
"in_bulk() must be provided with a list of IDs."
|
||||
if not id_list:
|
||||
return {}
|
||||
qs = self._clone()
|
||||
|
||||
Reference in New Issue
Block a user