Browse Source

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

pull/6247/head^2
Bai 4 years ago committed by Jiangjie.Bai
parent
commit
8fbea2f702
  1. 1
      apps/assets/serializers/asset_user.py

1
apps/assets/serializers/asset_user.py

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