From 07cd930c0ea95f52ef3db9d1d9938a4a4af108db Mon Sep 17 00:00:00 2001 From: Michael Bai Date: Tue, 14 Sep 2021 17:36:57 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=88=A0=E9=99=A4=E9=85=8D=E7=BD=AE=20P?= =?UTF-8?q?ERIOD=5FTASK=5FENABLED?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/settings/serializers/other.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/settings/serializers/other.py b/apps/settings/serializers/other.py index 131cdf5b4..6d3cce454 100644 --- a/apps/settings/serializers/other.py +++ b/apps/settings/serializers/other.py @@ -14,7 +14,6 @@ class OtherSettingSerializer(serializers.Serializer): ) OTP_VALID_WINDOW = serializers.IntegerField(label=_("OTP valid window")) - PERIOD_TASK_ENABLED = serializers.BooleanField(required=False, label=_("Enable period task")) WINDOWS_SSH_DEFAULT_SHELL = serializers.ChoiceField( choices=[ ('cmd', _("CMD")), @@ -28,4 +27,8 @@ class OtherSettingSerializer(serializers.Serializer): required=False, label=_("Perm single to ungroup node") ) + # 准备废弃 + # PERIOD_TASK_ENABLED = serializers.BooleanField( + # required=False, label=_("Enable period task") + # )