diff options
| author | Abhijeet Viswa <abhijeetviswa@gmail.com> | 2020-02-08 10:22:09 +0530 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2020-02-11 20:43:57 +0100 |
| commit | 1712a76b9dfda1ef220395e62ea87079da8c9f6c (patch) | |
| tree | ca7f0dcbeca2aa4f96b7040c67965a6fa38244c6 /tests/select_for_update/models.py | |
| parent | 41a3b3d18647b258331104520e76f977406c590d (diff) | |
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 0107e3d1058f653f66032f7fd3a0bd61e96bf782.
Diffstat (limited to 'tests/select_for_update/models.py')
| -rw-r--r-- | tests/select_for_update/models.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/select_for_update/models.py b/tests/select_for_update/models.py index c84f9ad6b2..305e8cac49 100644 --- a/tests/select_for_update/models.py +++ b/tests/select_for_update/models.py @@ -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) |
