perf: 设置资产账号的默认值,方便导入

pull/10023/head
ibuler 2 years ago
parent 9413fd4cd1
commit cac59db1ec

@ -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

Loading…
Cancel
Save