mirror of https://github.com/jumpserver/jumpserver
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
513 B
17 lines
513 B
from tickets.models import ApplyCommandTicket
|
|
from .ticket import TicketApplySerializer
|
|
|
|
__all__ = [
|
|
'ApplyCommandReviewSerializer',
|
|
]
|
|
|
|
|
|
class ApplyCommandReviewSerializer(TicketApplySerializer):
|
|
class Meta:
|
|
model = ApplyCommandTicket
|
|
writeable_fields = [
|
|
'apply_run_user', 'apply_run_asset', 'apply_run_account', 'apply_run_command',
|
|
'apply_from_session', 'apply_from_cmd_filter_acl'
|
|
]
|
|
fields = TicketApplySerializer.Meta.fields + writeable_fields
|