From c52ea089da3fd9c320141f2ae5b600e6dc3e6317 Mon Sep 17 00:00:00 2001 From: BaiJiangJie Date: Fri, 5 Jul 2019 12:40:15 +0800 Subject: [PATCH] =?UTF-8?q?[Update]=20=E7=94=A8=E6=88=B7=E6=8E=88=E6=9D=83?= =?UTF-8?q?=E8=B5=84=E4=BA=A7=E6=A0=91=E8=BF=9B=E8=A1=8C=E6=8E=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/perms/api/user_permission.py | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/perms/api/user_permission.py b/apps/perms/api/user_permission.py index 14439703e..3eafc28e0 100644 --- a/apps/perms/api/user_permission.py +++ b/apps/perms/api/user_permission.py @@ -270,6 +270,7 @@ class UserGrantedNodesWithAssetsAsTreeApi(UserPermissionCacheMixin, ListAPIView) for asset, system_users in assets.items(): data = parse_asset_to_tree_node(node, asset, system_users) queryset.append(data) + queryset = sorted(queryset) return queryset