mirror of
https://github.com/django/django.git
synced 2025-09-26 12:09:19 +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:
parent
471c9aee97
commit
15295a852f
2 changed files with 2 additions and 3 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue