mirror of https://github.com/jumpserver/jumpserver
Merge pull request #10023 from jumpserver/pr@dev@asset_accounts_secret_type_default
perf: 设置资产账号的默认值,方便导入pull/10034/head
commit
463d54a4d8
|
@ -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…
Reference in New Issue