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.
jumpserver/apps/settings/serializers/tool.py

18 lines
474 B

from django.utils.translation import gettext_lazy as _
from rest_framework import serializers
__all__ = [
'ToolSerializer'
]
class ToolSerializer(serializers.Serializer):
PREFIX_TITLE = _('Tool')
TOOL_USER_ENABLED = serializers.BooleanField(
label=_('Tools in the Workbench'), default=True,
help_text=_(
"*! If enabled, users with RBAC permissions will be able to utilize all "
"tools in the workbench"
)
)