mirror of https://github.com/jumpserver/jumpserver
[Bugfix] 修复更新系统用户后关联节点丢失的问题
parent
d8e614c54d
commit
2fc9c04228
|
@ -114,22 +114,15 @@ class SystemUserForm(PasswordAndKeyAuthForm):
|
||||||
fields = [
|
fields = [
|
||||||
'name', 'username', 'protocol', 'auto_generate_key',
|
'name', 'username', 'protocol', 'auto_generate_key',
|
||||||
'password', 'private_key_file', 'auto_push', 'sudo',
|
'password', 'private_key_file', 'auto_push', 'sudo',
|
||||||
'comment', 'shell', 'nodes', 'priority',
|
'comment', 'shell', 'priority',
|
||||||
]
|
]
|
||||||
widgets = {
|
widgets = {
|
||||||
'name': forms.TextInput(attrs={'placeholder': _('Name')}),
|
'name': forms.TextInput(attrs={'placeholder': _('Name')}),
|
||||||
'username': forms.TextInput(attrs={'placeholder': _('Username')}),
|
'username': forms.TextInput(attrs={'placeholder': _('Username')}),
|
||||||
'nodes': forms.SelectMultiple(
|
|
||||||
attrs={
|
|
||||||
'class': 'select2',
|
|
||||||
'data-placeholder': _('Nodes')
|
|
||||||
}
|
|
||||||
),
|
|
||||||
}
|
}
|
||||||
help_texts = {
|
help_texts = {
|
||||||
'name': '* required',
|
'name': '* required',
|
||||||
'username': '* required',
|
'username': '* required',
|
||||||
'nodes': _('If auto push checked, system user will be create at node assets'),
|
|
||||||
'auto_push': _('Auto push system user to asset'),
|
'auto_push': _('Auto push system user to asset'),
|
||||||
'priority': _('High level will be using login asset as default, if user was granted more than 2 system user'),
|
'priority': _('High level will be using login asset as default, if user was granted more than 2 system user'),
|
||||||
}
|
}
|
Loading…
Reference in New Issue