mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
dev: group by counts
This commit is contained in:
parent
b8aea19715
commit
b7dcbe91dd
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user