jumpserver/apps/settings/serializers/other.py

19 lines
536 B
Python
Raw Normal View History

2023-07-24 03:52:25 +00:00
from django.utils.translation import gettext_lazy as _
from rest_framework import serializers
2023-08-15 05:45:44 +00:00
__all__ = ['OtherSettingSerializer']
class OtherSettingSerializer(serializers.Serializer):
PREFIX_TITLE = _('More...')
PERM_SINGLE_ASSET_TO_UNGROUP_NODE = serializers.BooleanField(
2021-11-10 10:15:46 +00:00
required=False, label=_("Perm ungroup node"),
help_text=_("Perm single to ungroup node")
)
2021-09-14 09:36:57 +00:00
# 准备废弃
# PERIOD_TASK_ENABLED = serializers.BooleanField(
# required=False, label=_("Enable period task")
# )