fix: order by grouped pagination

This commit is contained in:
pablohashescobar 2024-03-13 16:11:16 +05:30
parent cf470d715a
commit ae339bc19c

View File

@ -203,7 +203,7 @@ class GroupedOffsetPaginator(OffsetPaginator):
row_number=Window(
expression=RowNumber(),
partition_by=[F(self.group_by_field_name)],
order_by=F(self.group_by_field_name).asc(),
order_by=(*self.key,),
)
)