perf: 调整搜索字段

This commit is contained in:
Eric
2023-12-14 15:48:12 +08:00
committed by Eric_Lee
parent 6cf05435bf
commit 81fb080c67

View File

@@ -63,8 +63,8 @@ class UploadMixin:
class VirtualAppViewSet(UploadMixin, JMSBulkModelViewSet):
queryset = VirtualApp.objects.all()
serializer_class = serializers.VirtualAppSerializer
filterset_fields = ['name', 'image_name', 'is_active']
search_fields = ['name', ]
filterset_fields = ['name', 'is_active']
search_fields = ['name', 'image_name']
rbac_perms = {
'upload': 'terminal.add_virtualapp',
}