Skip to content

Commit 4d29f51

Browse files
committed
Sort teams returned by current-user endpoint
Sort teams returned by current-user endpoint by id (which is how it is normally sorted, but that isn't guaranteed unless explicitly sorted)
1 parent cc4d238 commit 4d29f51

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

django/thunderstore/social/api/experimental/views/current_user.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ def get_teams(user: UserType) -> List[UserTeam]:
202202
)
203203
.exclude(team__is_active=False)
204204
.exclude(~Q(user=user))
205+
.order_by("id")
205206
)
206207

207208
return [

0 commit comments

Comments
 (0)