mirror of
https://github.com/django/django.git
synced 2025-11-02 04:48:33 +00:00
Fixed #15250 -- Avoided extra query on some multi-table inheritance queries.
Thanks marekw2143 for the initial patch and carljm for support.
This commit is contained in:
parent
9899347641
commit
38575b007a
4 changed files with 74 additions and 15 deletions
|
|
@ -384,7 +384,7 @@ class ProxyModelAdminTests(TestCase):
|
|||
tracker_user = TrackerUser.objects.all()[0]
|
||||
base_user = BaseUser.objects.all()[0]
|
||||
issue = Issue.objects.all()[0]
|
||||
with self.assertNumQueries(7):
|
||||
with self.assertNumQueries(6):
|
||||
collector = admin.utils.NestedObjects('default')
|
||||
collector.collect(ProxyTrackerUser.objects.all())
|
||||
self.assertIn(tracker_user, collector.edges.get(None, ()))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue