mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-10-22 08:19:04 +00:00
[Update] 修改授权api, windows资产只有rdp协议,linux只有ssh协议
This commit is contained in:
@@ -15,7 +15,7 @@ class AssetCreateForm(forms.ModelForm):
|
||||
model = Asset
|
||||
fields = [
|
||||
'hostname', 'ip', 'public_ip', 'port', 'comment',
|
||||
'nodes', 'is_active', 'admin_user', 'labels',
|
||||
'nodes', 'is_active', 'admin_user', 'labels', 'platform',
|
||||
|
||||
]
|
||||
widgets = {
|
||||
@@ -44,7 +44,7 @@ class AssetUpdateForm(forms.ModelForm):
|
||||
class Meta:
|
||||
model = Asset
|
||||
fields = [
|
||||
'hostname', 'ip', 'port', 'nodes', 'is_active',
|
||||
'hostname', 'ip', 'port', 'nodes', 'is_active', 'platform',
|
||||
'public_ip', 'number', 'comment', 'admin_user', 'labels',
|
||||
]
|
||||
widgets = {
|
||||
|
Reference in New Issue
Block a user