Skip to content

Commit

Permalink
Add ordering to paginated endpoint.
Browse files Browse the repository at this point in the history
  • Loading branch information
rtibbles committed Mar 22, 2024
1 parent 34253b6 commit c6c2e69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kolibri/core/auth/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ class FacilityUserViewSet(ValuesViewset):
)
order_by_field = "username"

queryset = FacilityUser.objects.all()
queryset = FacilityUser.objects.all().order_by(order_by_field)
serializer_class = FacilityUserSerializer
filterset_class = FacilityUserFilter
search_fields = ("username", "full_name")
Expand Down

0 comments on commit c6c2e69

Please sign in to comment.