mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Fixed flake8 warnings.
This commit is contained in:
@@ -720,7 +720,7 @@ class GenericRelationTests(TestCase):
|
||||
# attributes, so the following makes sense:
|
||||
qs = TaggedItem.objects.filter(content_type=ct, tag='awesome').prefetch_related('content_object__read_by')
|
||||
readers_of_awesome_books = {r.name for tag in qs
|
||||
for r in tag.content_object.read_by.all()}
|
||||
for r in tag.content_object.read_by.all()}
|
||||
self.assertEqual(readers_of_awesome_books, {"me", "you", "someone"})
|
||||
|
||||
def test_nullable_GFK(self):
|
||||
|
||||
Reference in New Issue
Block a user