perf: 优化远程应用界面

pull/9341/head
jiangweidong 2 years ago
parent 4bef48eb6a
commit b6eac5a6b7

@ -87,6 +87,7 @@ class DownloadUploadMixin:
class AppletViewSet(DownloadUploadMixin, JMSBulkModelViewSet):
queryset = Applet.objects.all()
serializer_class = serializers.AppletSerializer
search_fields = ['name', 'display_name', 'author']
rbac_perms = {
'upload': 'terminal.add_applet',
'download': 'terminal.view_applet',

@ -29,7 +29,7 @@ class AppletSerializer(serializers.ModelSerializer):
class Meta:
model = Applet
fields_mini = ['id', 'name', 'display_name']
fields_mini = ['id', 'name', 'display_name', 'is_active']
read_only_fields = [
'icon', 'date_created', 'date_updated',
]

Loading…
Cancel
Save