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.
11 lines
392 B
11 lines
392 B
1 year ago
|
from django.utils.translation import gettext_lazy as _
|
||
|
from rest_framework import serializers
|
||
|
|
||
|
from terminal.const import TaskNameType as SessionTaskChoices
|
||
|
|
||
|
|
||
|
class LockTaskSessionSerializer(serializers.Serializer):
|
||
|
|
||
|
session_id = serializers.CharField(max_length=40, label=_('Session id'))
|
||
|
task_name = serializers.ChoiceField(choices=SessionTaskChoices.choices, label=_('Task name'))
|