diff options
| author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2019-12-02 07:57:19 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-12-02 07:57:19 +0100 |
| commit | 0107e3d1058f653f66032f7fd3a0bd61e96bf782 (patch) | |
| tree | 9d13b2667b1e99434975ea8e930fe54d6c0c16e5 /docs/releases | |
| parent | c33eb6dcd0c211f8f02b2976fe3b3463f0a54498 (diff) | |
Fixed #30953 -- Made select_for_update() lock queryset's model when using "self" with multi-table inheritance.
Thanks Abhijeet Viswa for the report and initial patch.
Diffstat (limited to 'docs/releases')
| -rw-r--r-- | docs/releases/2.2.8.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/releases/2.2.8.txt b/docs/releases/2.2.8.txt index 4d8f9869c5..3c5eb5c754 100644 --- a/docs/releases/2.2.8.txt +++ b/docs/releases/2.2.8.txt @@ -17,3 +17,9 @@ Bugfixes * Fixed a regression in Django 2.2.1 that caused a crash when migrating permissions for proxy models with a multiple database setup if the ``default`` entry was empty (:ticket:`31021`). + +* Fixed a data loss possibility in the + :meth:`~django.db.models.query.QuerySet.select_for_update()`. When using + ``'self'`` in the ``of`` argument with :ref:`multi-table inheritance + <multi-table-inheritance>`, a parent model was locked instead of the + queryset's model (:ticket:`30953`). |
