jumpserver/apps/tickets/serializers/ticket/command_confirm.py

17 lines
509 B
Python
Raw Normal View History

from tickets.models import ApplyCommandTicket
from .ticket import TicketApplySerializer
__all__ = [
'ApplyCommandConfirmSerializer',
]
class ApplyCommandConfirmSerializer(TicketApplySerializer):
class Meta:
model = ApplyCommandTicket
fields = TicketApplySerializer.Meta.fields + [
2022-09-21 10:19:17 +00:00
'apply_run_user', 'apply_run_asset', 'apply_run_account',
'apply_run_command', 'apply_from_session', 'apply_from_cmd_filter',
'apply_from_cmd_filter_rule'
]