mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
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.
This commit is contained in:
@@ -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`).
|
||||
|
||||
Reference in New Issue
Block a user