Skip to content

Commit 151c14a

Browse files
author
Gianluca Lefebvre
committed
refactor: change pk to hashid on queryset ordering
1 parent 146d48c commit 151c14a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

teamvault/apps/secrets/api/filters.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def qs(self):
5757
parent = super().qs
5858
# Guarantee a deterministic total order so LIMIT/OFFSET pagination
5959
# is stable across requests even when the sort key has ties.
60-
return parent.order_by(*parent.query.order_by, 'pk')
60+
return parent.order_by(*parent.query.order_by, 'hashid')
6161

6262
class Meta:
6363
model = Secret

0 commit comments

Comments
 (0)