summaryrefslogtreecommitdiff
path: root/tests/distinct_on_fields/tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/distinct_on_fields/tests.py')
-rw-r--r--tests/distinct_on_fields/tests.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/distinct_on_fields/tests.py b/tests/distinct_on_fields/tests.py
index 5ce3ee4faf..cb88f60321 100644
--- a/tests/distinct_on_fields/tests.py
+++ b/tests/distinct_on_fields/tests.py
@@ -51,8 +51,7 @@ class DistinctOnTests(TestCase):
['<Staff: p1>', '<Staff: p1>', '<Staff: p2>', '<Staff: p3>'],
),
(
- Celebrity.objects.filter(fan__in=[self.fan1, self.fan2, self.fan3]).
- distinct('name').order_by('name'),
+ Celebrity.objects.filter(fan__in=[self.fan1, self.fan2, self.fan3]).distinct('name').order_by('name'),
['<Celebrity: c1>', '<Celebrity: c2>'],
),
# Does combining querysets work?