Merge branch 'master' into dashboard
This commit is contained in:
commit
dfb24ba61a
@ -151,6 +151,7 @@ class UserCreateView(CreateView):
|
|||||||
form.cleaned_data['last_name'])
|
form.cleaned_data['last_name'])
|
||||||
if not self.object.default_password:
|
if not self.object.default_password:
|
||||||
self.object.default_password = gen_password()
|
self.object.default_password = gen_password()
|
||||||
|
self.object.set_password(self.object.default_password)
|
||||||
|
|
||||||
|
|
||||||
class UserUpdateView(UpdateView):
|
class UserUpdateView(UpdateView):
|
||||||
|
Loading…
Reference in New Issue
Block a user