From c3aa2948c6c14862407501290571f858ccf45b07 Mon Sep 17 00:00:00 2001 From: Alasdair Nicol Date: Tue, 22 Oct 2013 11:21:07 +0100 Subject: Fixed #21298 -- Fixed E301 pep8 warnings --- tests/generic_relations_regress/tests.py | 1 + 1 file changed, 1 insertion(+) (limited to 'tests/generic_relations_regress') diff --git a/tests/generic_relations_regress/tests.py b/tests/generic_relations_regress/tests.py index 75edff34f2..d7a43846bb 100644 --- a/tests/generic_relations_regress/tests.py +++ b/tests/generic_relations_regress/tests.py @@ -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]) -- cgit v1.3