From 839f906a23271b24bf435b16575bbbfd0d2ddcf9 Mon Sep 17 00:00:00 2001 From: Daniel Hillier Date: Sat, 8 Aug 2020 15:17:36 +1000 Subject: [2.2.x] Fixed #31866 -- Fixed locking proxy models in QuerySet.select_for_update(of=()). Backport of 60626162f76f26d32a38d18151700cb041201fb3 from master --- docs/releases/2.2.16.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'docs') diff --git a/docs/releases/2.2.16.txt b/docs/releases/2.2.16.txt index 7e80406e9d..daba6f6f52 100644 --- a/docs/releases/2.2.16.txt +++ b/docs/releases/2.2.16.txt @@ -9,4 +9,7 @@ Django 2.2.16 fixes a data loss bug in 2.2.15. Bugfixes ======== -* ... +* Fixed a data loss possibility in the + :meth:`~django.db.models.query.QuerySet.select_for_update()`. When using + related fields pointing to a proxy model in the ``of`` argument, the + corresponding model was not locked (:ticket:`31866`). -- cgit v1.3