mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-08-30 03:42:54 +00:00
fix: User my assets sorted by connectivity did not take effect
This commit is contained in:
parent
43f9c07838
commit
d2396afdd5
@ -42,7 +42,7 @@ class UserPermedAssetRetrieveApi(SelfOrPKUserMixin, RetrieveAPIView):
|
|||||||
class BaseUserPermedAssetsApi(SelfOrPKUserMixin, ExtraFilterFieldsMixin, ListAPIView):
|
class BaseUserPermedAssetsApi(SelfOrPKUserMixin, ExtraFilterFieldsMixin, ListAPIView):
|
||||||
ordering = []
|
ordering = []
|
||||||
search_fields = ('name', 'address', 'comment')
|
search_fields = ('name', 'address', 'comment')
|
||||||
ordering_fields = ("name", "address")
|
ordering_fields = ("name", "address", "connectivity")
|
||||||
filterset_class = AssetFilterSet
|
filterset_class = AssetFilterSet
|
||||||
serializer_class = serializers.AssetPermedSerializer
|
serializer_class = serializers.AssetPermedSerializer
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user