summaryrefslogtreecommitdiff
path: root/django/db
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2011-03-26 17:50:10 +0000
committerAdrian Holovaty <adrian@holovaty.com>2011-03-26 17:50:10 +0000
commit15295a852f181d8812fd06aef2763b28443bc331 (patch)
tree6026b510dd073530003e2eb2a77d87a83b16c771 /django/db
parent471c9aee9771da32b942e71c7dcaef97a4c70f1c (diff)
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
Diffstat (limited to 'django/db')
-rw-r--r--django/db/models/query.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/django/db/models/query.py b/django/db/models/query.py
index 324554eb78..0fc48f8a41 100644
--- a/django/db/models/query.py
+++ b/django/db/models/query.py
@@ -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()