summaryrefslogtreecommitdiff
path: root/tests/distinct_on_fields
diff options
context:
space:
mode:
authorAlasdair Nicol <alasdair@memset.com>2013-10-18 01:24:41 +0100
committerAlasdair Nicol <alasdair@memset.com>2013-10-18 01:28:32 +0100
commit65d1d65d52a87bba22845bcb7c3c921a8789ec19 (patch)
tree872e3bb19d81395d60f13019844a042cb00252f5 /tests/distinct_on_fields
parentdfb4cb9970f86487f0aaa88c5dfcfafa31e4f430 (diff)
downloaddjango-65d1d65d52a87bba22845bcb7c3c921a8789ec19.tar.gz
Fixed #21267 -- Fixed E502 pep8 warnings
Diffstat (limited to 'tests/distinct_on_fields')
-rw-r--r--tests/distinct_on_fields/tests.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/distinct_on_fields/tests.py b/tests/distinct_on_fields/tests.py
index 392178d894..5ce3ee4faf 100644
--- a/tests/distinct_on_fields/tests.py
+++ b/tests/distinct_on_fields/tests.py
@@ -51,15 +51,15 @@ class DistinctOnTests(TestCase):
['<Staff: p1>', '<Staff: p1>', '<Staff: p2>', '<Staff: p3>'],
),
(
- Celebrity.objects.filter(fan__in=[self.fan1, self.fan2, self.fan3]).\
+ Celebrity.objects.filter(fan__in=[self.fan1, self.fan2, self.fan3]).
distinct('name').order_by('name'),
['<Celebrity: c1>', '<Celebrity: c2>'],
),
# Does combining querysets work?
(
- (Celebrity.objects.filter(fan__in=[self.fan1, self.fan2]).\
+ (Celebrity.objects.filter(fan__in=[self.fan1, self.fan2]).
distinct('name').order_by('name')
- |Celebrity.objects.filter(fan__in=[self.fan3]).\
+ |Celebrity.objects.filter(fan__in=[self.fan3]).
distinct('name').order_by('name')),
['<Celebrity: c1>', '<Celebrity: c2>'],
),