mirror of
https://github.com/retspen/webvirtcloud
synced 2024-12-25 15:45:23 +00:00
fix create user error
This commit is contained in:
parent
7dd9127572
commit
372ba5a0f2
1 changed files with 8 additions and 7 deletions
|
@ -73,6 +73,7 @@ class UserForm(forms.ModelForm):
|
||||||
|
|
||||||
def __init__(self, *args, **kwargs):
|
def __init__(self, *args, **kwargs):
|
||||||
super(UserForm, self).__init__(*args, **kwargs)
|
super(UserForm, self).__init__(*args, **kwargs)
|
||||||
|
if self.instance.id:
|
||||||
password = ReadOnlyPasswordHashField(label=_("Password"),
|
password = ReadOnlyPasswordHashField(label=_("Password"),
|
||||||
help_text=format_lazy(_("""Raw passwords are not stored, so there is no way to see
|
help_text=format_lazy(_("""Raw passwords are not stored, so there is no way to see
|
||||||
this user's password, but you can change the password
|
this user's password, but you can change the password
|
||||||
|
|
Loading…
Reference in a new issue