fix: User my assets sorted by connectivity did not take effect

pull/13006/head
Bai 8 months ago committed by Bryan
parent 43f9c07838
commit d2396afdd5

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

Loading…
Cancel
Save