diff --git a/apps/terminal/api/applet/applet.py b/apps/terminal/api/applet/applet.py index 3b85ab753..c2b361ca6 100644 --- a/apps/terminal/api/applet/applet.py +++ b/apps/terminal/api/applet/applet.py @@ -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', diff --git a/apps/terminal/serializers/applet.py b/apps/terminal/serializers/applet.py index 89fdf19b5..64ae6eda2 100644 --- a/apps/terminal/serializers/applet.py +++ b/apps/terminal/serializers/applet.py @@ -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', ]