mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-06 09:51:00 +00:00
perf: i18n bai
This commit is contained in:
15
apps/settings/serializers/tool.py
Normal file
15
apps/settings/serializers/tool.py
Normal file
@@ -0,0 +1,15 @@
|
||||
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")
|
||||
)
|
Reference in New Issue
Block a user