mirror of
https://github.com/makeplane/plane.git
synced 2026-07-13 05:49:40 +02:00
dev: group by counts
This commit is contained in:
@@ -457,7 +457,9 @@ class SubGroupedOffsetPaginator(OffsetPaginator):
|
||||
)
|
||||
|
||||
def __get_subgroup_total_queryset(self):
|
||||
return self.queryset.values(self.sub_group_by_field_name).annotate(
|
||||
return self.queryset.values(
|
||||
self.group_by_field_name, self.sub_group_by_field_name
|
||||
).annotate(
|
||||
count=Count(
|
||||
"id",
|
||||
filter=self.count_filter,
|
||||
|
||||
Reference in New Issue
Block a user