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

15 lines
387 B

6 months ago
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=_('User tool'), default=True,
help_text=_("If enabled, users can utilize all tools in the workspace")
)