perf: perm asset api date_updated order

pull/14668/head
feng 2024-12-17 14:38:11 +08:00 committed by ZhaoJiSen
parent 4018a59b2e
commit 931e15173b
1 changed files with 1 additions and 1 deletions

View File

@ -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