mirror of https://github.com/jumpserver/jumpserver
parent
37e471e950
commit
4409809106
|
@ -65,8 +65,8 @@ class AssetViewSet(SuggestionMixin, NodeFilterMixin, OrgBulkModelViewSet):
|
||||||
model = Asset
|
model = Asset
|
||||||
filterset_class = AssetFilterSet
|
filterset_class = AssetFilterSet
|
||||||
search_fields = ("name", "address")
|
search_fields = ("name", "address")
|
||||||
ordering_fields = ("name", "address")
|
ordering_fields = ("name", "address", "connectivity")
|
||||||
ordering = ("name",)
|
ordering = ("name", "connectivity")
|
||||||
serializer_classes = (
|
serializer_classes = (
|
||||||
("default", serializers.AssetSerializer),
|
("default", serializers.AssetSerializer),
|
||||||
("platform", serializers.PlatformSerializer),
|
("platform", serializers.PlatformSerializer),
|
||||||
|
|
Loading…
Reference in New Issue