We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 640da6f commit b13f652Copy full SHA for b13f652
tests/testapp/test_aggregates.py
@@ -76,6 +76,10 @@ def test_basic_aggregate_ids(self):
76
out = self.shakes.tutees.aggregate(tids=GroupConcat("id"))
77
assert out == {"tids": self.str_tutee_ids}
78
79
+ def test_distinct_aggregate_ids(self):
80
+ out = self.shakes.tutees.aggregate(tids=GroupConcat("id"), distinct=True)
81
+ assert out == {"tids": set(self.str_tutee_ids)}
82
+
83
def test_basic_annotate_ids(self):
84
concat = GroupConcat("tutees__id")
85
shakey = Author.objects.annotate(tids=concat).get(id=self.shakes.id)
0 commit comments