mirror of
https://github.com/django/django.git
synced 2025-08-02 18:13:02 +00:00
[2.2.x] Fixed #31246 -- Fixed locking models in QuerySet.select_for_update(of=()) for related fields and parent link fields with multi-table inheritance.
Partly regression in0107e3d105
. Backport of1712a76b9d
from master.
This commit is contained in:
parent
eeed073aa2
commit
32d89bf114
5 changed files with 75 additions and 23 deletions
|
@ -9,4 +9,8 @@ Django 2.2.11 fixes a data loss bug in 2.2.10.
|
|||
Bugfixes
|
||||
========
|
||||
|
||||
* ...
|
||||
* Fixed a data loss possibility in the
|
||||
:meth:`~django.db.models.query.QuerySet.select_for_update`. When using
|
||||
related fields or parent link fields with :ref:`multi-table-inheritance` in
|
||||
the ``of`` argument, the corresponding models were not locked
|
||||
(:ticket:`31246`).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue