mirror of
https://github.com/jumpserver/jumpserver.git
synced 2026-01-05 23:54:18 +00:00
feat: command exexution audit log的搜索
This commit is contained in:
@@ -92,8 +92,8 @@ class CommandExecutionViewSet(ListModelMixin, OrgGenericViewSet):
|
||||
date_range_filter_fields = [
|
||||
('date_start', ('date_from', 'date_to'))
|
||||
]
|
||||
filter_fields = ['user__name', 'command', 'run_as__name']
|
||||
search_fields = ['command']
|
||||
filter_fields = ['user__name', 'command', 'run_as__name', 'is_finished']
|
||||
search_fields = ['command', 'user__name', 'run_as__name']
|
||||
ordering = ['-date_created']
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user