mirror of
https://github.com/django/django.git
synced 2025-08-03 02:23:12 +00:00
Refs #23968 -- Removed unnecessary lists, generators, and tuple calls.
This commit is contained in:
parent
edee5a8de6
commit
2c69824e5a
63 changed files with 145 additions and 150 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue