mirror of https://github.com/jumpserver/jumpserver
perf: asset date_updated
parent
dac708f952
commit
ee122690ff
|
@ -96,7 +96,7 @@ class AssetViewSet(SuggestionMixin, NodeFilterMixin, OrgBulkModelViewSet):
|
|||
model = Asset
|
||||
filterset_class = AssetFilterSet
|
||||
search_fields = ("name", "address")
|
||||
ordering_fields = ('name', 'connectivity', 'platform')
|
||||
ordering_fields = ('name', 'connectivity', 'platform', 'date_updated')
|
||||
serializer_classes = (
|
||||
("default", serializers.AssetSerializer),
|
||||
("platform", serializers.PlatformSerializer),
|
||||
|
|
Loading…
Reference in New Issue