mirror of
https://github.com/Hopiu/django.git
synced 2026-05-09 16:14:43 +00:00
Refs #24090 -- Added a test for multi-table inheritance + subqueries.
Ticket #24090 was already fixed by
b68212f539, this commit adds tests to
verify this is indeed the case.
Thanks to Beauhurst for commissioning the work on this ticket.
This commit is contained in:
parent
915ef79b08
commit
76ac07a909
2 changed files with 6 additions and 1 deletions
|
|
@ -700,7 +700,11 @@ class Classroom(models.Model):
|
|||
students = models.ManyToManyField(Student, related_name='classroom')
|
||||
|
||||
|
||||
class Ticket23605A(models.Model):
|
||||
class Ticket23605AParent(models.Model):
|
||||
pass
|
||||
|
||||
|
||||
class Ticket23605A(Ticket23605AParent):
|
||||
pass
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -3657,6 +3657,7 @@ class Ticket23605Tests(TestCase):
|
|||
# The query structure is such that we have multiple nested subqueries.
|
||||
# The original problem was that the inner queries weren't relabeled
|
||||
# correctly.
|
||||
# See also #24090.
|
||||
a1 = Ticket23605A.objects.create()
|
||||
a2 = Ticket23605A.objects.create()
|
||||
c1 = Ticket23605C.objects.create(field_c0=10000.0)
|
||||
|
|
|
|||
Loading…
Reference in a new issue