mirror of https://github.com/jumpserver/jumpserver
				
				
				
			fix: 管理员与用户资产列表排序不统一
							parent
							
								
									41541a91b9
								
							
						
					
					
						commit
						fed0732c1e
					
				| 
						 | 
				
			
			@ -33,6 +33,8 @@ class UserAllGrantedAssetsQuerysetMixin:
 | 
			
		|||
    only_fields = serializers.AssetGrantedSerializer.Meta.only_fields
 | 
			
		||||
    pagination_class = AllGrantedAssetPagination
 | 
			
		||||
    user: User
 | 
			
		||||
    ordering_fields = ("hostname", "ip", "port", "cpu_cores")
 | 
			
		||||
    ordering = ('hostname', )
 | 
			
		||||
    
 | 
			
		||||
    def get_queryset(self):
 | 
			
		||||
        if getattr(self, 'swagger_fake_view', False):
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue