Merge pull request #10023 from jumpserver/pr@dev@asset_accounts_secret_type_default

perf: 设置资产账号的默认值,方便导入
pull/10034/head
老广 2 years ago committed by GitHub
commit 463d54a4d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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