mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Fixed #29499 -- Fixed race condition in QuerySet.update_or_create().
A race condition happened when the object didn't already exist and another process/thread created the object before update_or_create() did and then attempted to update the object, also before update_or_create() saved the object. The update by the other process/thread could be lost.
This commit is contained in:
committed by
Tim Graham
parent
743d28f553
commit
271542dad1
13
docs/releases/1.11.16.txt
Normal file
13
docs/releases/1.11.16.txt
Normal file
@@ -0,0 +1,13 @@
|
||||
============================
|
||||
Django 1.11.16 release notes
|
||||
============================
|
||||
|
||||
*Expected September 1, 2018*
|
||||
|
||||
Django 1.11.16 fixes a data loss bug in 1.11.15.
|
||||
|
||||
Bugfixes
|
||||
========
|
||||
|
||||
* Fixed a race condition in ``QuerySet.update_or_create()`` that could result
|
||||
in data loss (:ticket:`29499`).
|
||||
Reference in New Issue
Block a user