1
0
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:
Adrian Holovaty
2006-01-06 20:49:38 +00:00
parent d33099252a
commit bb8fb814a6
4 changed files with 13 additions and 11 deletions

View File

@@ -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