summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2011-09-10 21:44:57 +0000
committerAlex Gaynor <alex.gaynor@gmail.com>2011-09-10 21:44:57 +0000
commitf2bc919ec00457fd53f093af53ab71c7f1bcfbcd (patch)
treecd917936d2480dc3fb4c57603060018a6fc92119 /django
parente95d0afe9e79f1864ea53e98007ca225a218417b (diff)
Ensure bulk_create returns what it is supposed to.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16791 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django')
-rw-r--r--django/db/models/query.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/django/db/models/query.py b/django/db/models/query.py
index 4b6645569f..dbd37b1822 100644
--- a/django/db/models/query.py
+++ b/django/db/models/query.py
@@ -388,6 +388,7 @@ class QuerySet(object):
self.model._base_manager._insert(objs_with_pk, fields=fields, using=self.db)
if objs_without_pk:
self.model._base_manager._insert(objs_without_pk, fields=[f for f in fields if not isinstance(f, AutoField)], using=self.db)
+ return objs
def get_or_create(self, **kwargs):
"""