mirror of
https://github.com/django/django.git
synced 2025-09-26 12:09:19 +00:00
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:
parent
41a3b3d186
commit
1712a76b9d
6 changed files with 81 additions and 23 deletions
|
@ -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)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue