mirror of https://github.com/jumpserver/jumpserver
fix: 修改资产账号name为非必填
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…
Reference in New Issue