mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
Refs #23968 -- Removed unnecessary lists, generators, and tuple calls.
This commit is contained in:
@@ -40,7 +40,7 @@ class MultiTableTests(TestCase):
|
||||
result = Event.objects.filter(name='Exposition Match').prefetch_related('special_people')
|
||||
with self.assertNumQueries(2):
|
||||
self.assertCountEqual(result, [self.event])
|
||||
self.assertEqual(sorted([p.name for p in result[0].special_people.all()]), ['Chris', 'Dan'])
|
||||
self.assertEqual(sorted(p.name for p in result[0].special_people.all()), ['Chris', 'Dan'])
|
||||
|
||||
def test_m2m_prefetch_reverse_proxied(self):
|
||||
result = Person.objects.filter(name='Dan').prefetch_related('special_event_set')
|
||||
|
||||
Reference in New Issue
Block a user