fix: 命令记录导出选择项

pull/6063/head
xinwen 2021-04-15 20:40:06 +08:00 committed by 老广
parent f5d8e125cb
commit 657a2ac7e7
1 changed files with 2 additions and 1 deletions

View File

@ -17,6 +17,7 @@ from terminal.filters import CommandFilter
from orgs.utils import current_org
from common.permissions import IsOrgAdminOrAppUser, IsOrgAuditor, IsAppUser
from common.const.http import GET
from common.drf.api import JMSBulkModelViewSet
from common.utils import get_logger
from terminal.utils import send_command_alert_mail
from terminal.serializers import InsecureCommandAlertSerializer
@ -94,7 +95,7 @@ class CommandQueryMixin:
return date_from_st, date_to_st
class CommandViewSet(viewsets.ModelViewSet):
class CommandViewSet(JMSBulkModelViewSet):
"""接受app发送来的command log, 格式如下
{
"user": "admin",