2023-07-24 03:52:25 +00:00
|
|
|
from django.utils.translation import gettext_lazy as _
|
2021-09-09 06:00:50 +00:00
|
|
|
from rest_framework import serializers
|
|
|
|
|
2023-08-15 05:45:44 +00:00
|
|
|
__all__ = ['OtherSettingSerializer']
|
|
|
|
|
2021-09-09 06:00:50 +00:00
|
|
|
|
|
|
|
class OtherSettingSerializer(serializers.Serializer):
|
2022-11-04 06:22:38 +00:00
|
|
|
PREFIX_TITLE = _('More...')
|
|
|
|
|
2021-09-09 06:00:50 +00:00
|
|
|
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-09 06:00:50 +00:00
|
|
|
)
|
|
|
|
|
2021-09-14 09:36:57 +00:00
|
|
|
# 准备废弃
|
|
|
|
# PERIOD_TASK_ENABLED = serializers.BooleanField(
|
|
|
|
# required=False, label=_("Enable period task")
|
|
|
|
# )
|