perf: luna 页面获取资产系统用户按 name 排序

pull/5696/head
xinwen 2021-03-11 15:05:40 +08:00 committed by 老广
parent a45f581b0e
commit 102d3b590b
1 changed files with 1 additions and 1 deletions

View File

@ -121,7 +121,7 @@ class UserGrantedAssetSystemUsersForAdminApi(ListAPIView):
system_user_ids = system_users_with_actions.keys()
system_users = SystemUser.objects.filter(id__in=system_user_ids)\
.only(*self.serializer_class.Meta.only_fields) \
.order_by('priority')
.order_by('name')
system_users = list(system_users)
for system_user in system_users:
actions = system_users_with_actions.get(system_user.id, 0)