fix: command log search (#7906)

Co-authored-by: feng626 <1304903146@qq.com>
pull/7908/head
fit2bot 2022-03-17 15:39:05 +08:00 committed by GitHub
parent b297ebe973
commit 9c395b674f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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', )