Fixed broken code (was not working since the last big refactoring I did in the admin code).

fix #133
This commit is contained in:
Antoine Nguyen
2011-04-15 15:28:44 +02:00
parent 182e1c2ea3
commit 6d397aabe0
4 changed files with 41 additions and 35 deletions
+1 -1
View File
@@ -28,7 +28,7 @@ def changepassword(request, tplname="userprefs/chpassword.html"):
else:
target.set_password(request.POST["confirmation"])
target.save()
return ajax_response(request)
return ajax_response(request, respmsg=_("Password changed"))
return ajax_response(request, status="ko", template=tplname, form=form, error=error)
form = ChangePasswordForm(target)