From 9c395b674f4edb23b2e9bbb9df0d42546e5e7996 Mon Sep 17 00:00:00 2001 From: fit2bot <68588906+fit2bot@users.noreply.github.com> Date: Thu, 17 Mar 2022 15:39:05 +0800 Subject: [PATCH] fix: command log search (#7906) Co-authored-by: feng626 <1304903146@qq.com> --- apps/terminal/api/command.py | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/terminal/api/command.py b/apps/terminal/api/command.py index 9fa401421..09ed27e30 100644 --- a/apps/terminal/api/command.py +++ b/apps/terminal/api/command.py @@ -105,6 +105,7 @@ class CommandViewSet(JMSBulkModelViewSet): command_store = get_command_storage() serializer_class = SessionCommandSerializer filterset_class = CommandFilter + search_fields = ('input',) model = Command ordering_fields = ('timestamp', )