From d2396afdd5303fa3728129790abb89e41d3e9bd6 Mon Sep 17 00:00:00 2001 From: Bai Date: Fri, 12 Apr 2024 10:34:53 +0800 Subject: [PATCH] fix: User my assets sorted by connectivity did not take effect --- apps/perms/api/user_permission/assets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/perms/api/user_permission/assets.py b/apps/perms/api/user_permission/assets.py index 676a21e5e..22c187e3e 100644 --- a/apps/perms/api/user_permission/assets.py +++ b/apps/perms/api/user_permission/assets.py @@ -42,7 +42,7 @@ class UserPermedAssetRetrieveApi(SelfOrPKUserMixin, RetrieveAPIView): class BaseUserPermedAssetsApi(SelfOrPKUserMixin, ExtraFilterFieldsMixin, ListAPIView): ordering = [] search_fields = ('name', 'address', 'comment') - ordering_fields = ("name", "address") + ordering_fields = ("name", "address", "connectivity") filterset_class = AssetFilterSet serializer_class = serializers.AssetPermedSerializer