mirror of
https://github.com/django/django.git
synced 2025-07-24 13:44:32 +00:00
Fixed #20989 -- Removed useless explicit list comprehensions.
This commit is contained in:
parent
e4a67fd906
commit
11cd7388f7
75 changed files with 163 additions and 163 deletions
|
@ -79,7 +79,7 @@ class ProxyModelTests(TestCase):
|
|||
Person.objects.create(name="Foo McBar")
|
||||
MyPerson.objects.create(name="Bazza del Frob")
|
||||
LowerStatusPerson.objects.create(status="low", name="homer")
|
||||
pp = sorted([mpp.name for mpp in MyPersonProxy.objects.all()])
|
||||
pp = sorted(mpp.name for mpp in MyPersonProxy.objects.all())
|
||||
self.assertEqual(pp, ['Bazza del Frob', 'Foo McBar', 'homer'])
|
||||
|
||||
def test_proxy_included_in_ancestors(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue