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

17 lines
513 B
Python
Raw Normal View History

from tickets.models import ApplyCommandTicket
from .ticket import TicketApplySerializer
__all__ = [
2022-12-06 10:26:07 +00:00
'ApplyCommandReviewSerializer',
]
2022-12-06 10:26:07 +00:00
class ApplyCommandReviewSerializer(TicketApplySerializer):
class Meta:
model = ApplyCommandTicket
writeable_fields = [
'apply_run_user', 'apply_run_asset', 'apply_run_account', 'apply_run_command',
2022-12-06 10:26:07 +00:00
'apply_from_session', 'apply_from_cmd_filter_acl'
]
fields = TicketApplySerializer.Meta.fields + writeable_fields