mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Refs #23968 -- Removed unnecessary lists, generators, and tuple calls.
This commit is contained in:
@@ -858,7 +858,7 @@ class GenericRelationTests(TestCase):
|
||||
|
||||
with self.assertNumQueries(3):
|
||||
bookmark = Bookmark.objects.filter(pk=b.pk).prefetch_related('tags', 'favorite_tags')[0]
|
||||
self.assertEqual(sorted([i.tag for i in bookmark.tags.all()]), ["django", "python"])
|
||||
self.assertEqual(sorted(i.tag for i in bookmark.tags.all()), ["django", "python"])
|
||||
self.assertEqual([i.tag for i in bookmark.favorite_tags.all()], ["python"])
|
||||
|
||||
def test_custom_queryset(self):
|
||||
|
||||
Reference in New Issue
Block a user