1
0
mirror of https://github.com/django/django.git synced 2025-10-27 15:46:10 +00:00

[1.10.x] Fixed #27026 -- Fixed state initialization of bulk_create() objects if can_return_ids_from_bulk_insert.

Backport of 3246d2b4bb from master
This commit is contained in:
Sjoerd Job Postmus
2016-08-05 23:57:55 +02:00
committed by Tim Graham
parent d68b145a6f
commit 2f18cbc313
3 changed files with 19 additions and 2 deletions

View File

@@ -37,3 +37,8 @@ Bugfixes
* Fixed a regression in ``Client.force_login()`` which required specifying a
``backend`` rather than automatically using the first one if multiple
backends are configured (:ticket:`27027`).
* Made ``QuerySet.bulk_create()`` properly initialize model instances on
backends, such as PostgreSQL, that support returning the IDs of the created
records so that many-to-many relationships can be used on the new objects
(:ticket:`27026`).