Browse Source

perf: 调整搜索字段

pull/12337/head
Eric 11 months ago committed by Eric_Lee
parent
commit
81fb080c67
  1. 4
      apps/terminal/api/virtualapp/virtualapp.py

4
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',
}

Loading…
Cancel
Save