From 81fb080c674e6f23fa1b6dc53ea832410a0c3683 Mon Sep 17 00:00:00 2001 From: Eric Date: Thu, 14 Dec 2023 15:48:12 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E8=B0=83=E6=95=B4=E6=90=9C=E7=B4=A2?= =?UTF-8?q?=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/terminal/api/virtualapp/virtualapp.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/terminal/api/virtualapp/virtualapp.py b/apps/terminal/api/virtualapp/virtualapp.py index 07b92a356..7b4c5b9b2 100644 --- a/apps/terminal/api/virtualapp/virtualapp.py +++ b/apps/terminal/api/virtualapp/virtualapp.py @@ -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', }