mirror of https://github.com/jumpserver/jumpserver
perf: perm asset api date_updated order
parent
4018a59b2e
commit
931e15173b
|
@ -42,7 +42,7 @@ class UserPermedAssetRetrieveApi(SelfOrPKUserMixin, RetrieveAPIView):
|
|||
class BaseUserPermedAssetsApi(SelfOrPKUserMixin, ExtraFilterFieldsMixin, ListAPIView):
|
||||
ordering = []
|
||||
search_fields = ('name', 'address', 'comment')
|
||||
ordering_fields = ("name", "address", "connectivity")
|
||||
ordering_fields = ("name", "address", "connectivity", "date_updated")
|
||||
filterset_class = AssetFilterSet
|
||||
serializer_class = serializers.AssetPermedSerializer
|
||||
|
||||
|
|
Loading…
Reference in New Issue