1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Fixed #27026 -- Fixed state initialization of bulk_create() objects if can_return_ids_from_bulk_insert.

This commit is contained in:
Sjoerd Job Postmus
2016-08-05 23:57:55 +02:00
committed by Tim Graham
parent fc8f097117
commit 3246d2b4bb
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`).