fix: command log search (#7906)

Co-authored-by: feng626 <1304903146@qq.com>
This commit is contained in:
fit2bot
2022-03-17 15:39:05 +08:00
committed by GitHub
parent b297ebe973
commit 9c395b674f

View File

@@ -105,6 +105,7 @@ class CommandViewSet(JMSBulkModelViewSet):
command_store = get_command_storage() command_store = get_command_storage()
serializer_class = SessionCommandSerializer serializer_class = SessionCommandSerializer
filterset_class = CommandFilter filterset_class = CommandFilter
search_fields = ('input',)
model = Command model = Command
ordering_fields = ('timestamp', ) ordering_fields = ('timestamp', )