mirror of
https://github.com/django/django.git
synced 2025-08-04 10:59:45 +00:00
Fixed #21298 -- Fixed E301 pep8 warnings
This commit is contained in:
parent
317040a73b
commit
c3aa2948c6
83 changed files with 180 additions and 2 deletions
|
@ -95,6 +95,7 @@ class GenericRelationTests(TestCase):
|
|||
Link.objects.create(content_object=c)
|
||||
|
||||
places = list(Place.objects.order_by('links__id'))
|
||||
|
||||
def count_places(place):
|
||||
return len([p for p in places if p.id == place.id])
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue