From cac59db1ec415930041d4bdb19787e691fa28b04 Mon Sep 17 00:00:00 2001 From: ibuler Date: Tue, 21 Mar 2023 12:43:54 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E8=AE=BE=E7=BD=AE=E8=B5=84=E4=BA=A7?= =?UTF-8?q?=E8=B4=A6=E5=8F=B7=E7=9A=84=E9=BB=98=E8=AE=A4=E5=80=BC=EF=BC=8C?= =?UTF-8?q?=E6=96=B9=E4=BE=BF=E5=AF=BC=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/assets/serializers/asset/common.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/assets/serializers/asset/common.py b/apps/assets/serializers/asset/common.py index d7dc7b175..dfcd2de82 100644 --- a/apps/assets/serializers/asset/common.py +++ b/apps/assets/serializers/asset/common.py @@ -71,7 +71,8 @@ class AssetAccountSerializer( template = serializers.BooleanField( default=False, label=_("Template"), write_only=True ) - name = serializers.CharField(max_length=128, required=True, label=_("Name")) + name = serializers.CharField(max_length=128, required=False, label=_("Name")) + secret_type = serializers.CharField(max_length=64, default='password', label=_("Secret type")) class Meta: model = Account