2024-05-27 03:13:13 +00:00
|
|
|
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(
|
2024-05-27 03:34:53 +00:00
|
|
|
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"
|
|
|
|
)
|
2024-05-27 03:13:13 +00:00
|
|
|
)
|