mirror of
https://github.com/django/django.git
synced 2025-11-07 07:15:35 +00:00
magic-removal: Merged to [1834]
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@1835 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -65,6 +65,10 @@ Article 4
|
||||
{3: Article 3}
|
||||
>>> Article.objects.get_in_bulk([1000])
|
||||
{}
|
||||
>>> Article.objects.get_in_bulk([])
|
||||
Traceback (most recent call last):
|
||||
...
|
||||
AssertionError: get_in_bulk() cannot be passed an empty list.
|
||||
|
||||
# get_values() is just like get_list(), except it returns a list of
|
||||
# dictionaries instead of object instances -- and you can specify which fields
|
||||
|
||||
Reference in New Issue
Block a user