[Update] 恢复到原来的sql (#3707)

This commit is contained in:
老广
2020-02-15 20:49:20 +08:00
committed by GitHub
parent 5f61f2b555
commit 8b8b11ce1e
6 changed files with 33 additions and 40 deletions

View File

@@ -105,6 +105,7 @@ class UserGrantedAssetSystemUsersApi(UserAssetPermissionMixin, ListAPIView):
only_fields = serializers.AssetSystemUserSerializer.Meta.only_fields
def get_queryset(self):
import time
asset_id = self.kwargs.get('asset_id')
asset = get_object_or_404(Asset, id=asset_id)
system_users_with_actions = self.util.get_asset_system_users_with_actions(asset)
@@ -114,3 +115,4 @@ class UserGrantedAssetSystemUsersApi(UserAssetPermissionMixin, ListAPIView):
system_users.append(system_user)
system_users.sort(key=lambda x: x.priority)
return system_users