Merge branch 'master' into dashboard

This commit is contained in:
Oskar Hahn 2012-08-15 11:05:29 +02:00
commit dfb24ba61a

View File

@ -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):