Fixed #31246 -- Fixed locking models in QuerySet.select_for_update(of=()) for related fields and parent link fields with multi-table inheritance.

Partly regression in 0107e3d105.
This commit is contained in:
Abhijeet Viswa 2020-02-08 10:22:09 +05:30 committed by Mariusz Felisiak
parent 41a3b3d186
commit 1712a76b9d
6 changed files with 81 additions and 23 deletions

View file

@ -1,7 +1,11 @@
from django.db import models
class Country(models.Model):
class Entity(models.Model):
pass
class Country(Entity):
name = models.CharField(max_length=30)