Skip to content

Commit

Permalink
feat: minor
Browse files Browse the repository at this point in the history
  • Loading branch information
nannan00 committed Nov 21, 2023
1 parent f3cac33 commit 74c6612
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/bk-user/bkuser/apis/login/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,11 @@ class IdpListApi(LoginApiAccessControlMixin, generics.ListAPIView):
serializer_class = IdpListOutputSLZ

def get_queryset(self):
return Idp.objects.filter(owner_tenant_id=self.kwargs["tenant_id"]).select_related("plugin")
return (
Idp.objects.filter(owner_tenant_id=self.kwargs["tenant_id"])
.select_related("plugin")
.order_by("created_at")
)


class IdpRetrieveApi(LoginApiAccessControlMixin, generics.RetrieveAPIView):
Expand Down

0 comments on commit 74c6612

Please sign in to comment.