Commit ee443361 authored by liuzheng712's avatar liuzheng712

bug of user.update

parent 1c3b66c1
......@@ -443,7 +443,7 @@ def change_info(request):
# if password != user.password:
# password = CRYPTOR.md5_crypt(password)
user.update(username=name, email=email)
user.update(name=name, email=email)
User.objects.get(id=user_id).set_password(password)
msg = '修改成功'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment