fix: 修改资产账号name为非必填

pull/6247/head^2
Bai 4 years ago committed by Jiangjie.Bai
parent af92271a52
commit 8fbea2f702

@ -64,6 +64,7 @@ class AssetUserReadSerializer(AssetUserWriteSerializer):
fields_fk = ['asset', 'hostname', 'ip']
fields = fields_small + fields_fk
extra_kwargs = {
'name': {'required': False},
'username': {'required': True},
'password': {'write_only': True},
'private_key': {'write_only': True},

Loading…
Cancel
Save