From 00f69849299a5d01d3390a9ecbacf2b73a84bbd2 Mon Sep 17 00:00:00 2001 From: guanghongwei Date: Wed, 1 Oct 2014 21:12:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=B0=8F=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- webroot/AutoSa/AutoSa/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webroot/AutoSa/AutoSa/views.py b/webroot/AutoSa/AutoSa/views.py index c39724a26..35ff74708 100644 --- a/webroot/AutoSa/AutoSa/views.py +++ b/webroot/AutoSa/AutoSa/views.py @@ -707,7 +707,7 @@ def chgKey(request): error = '原来密码不正确' username = request.POST.get('username') - user = request.objects.get(username=username) + user = User.objects.get(username=username) password = request.POST.get('password') password_again = request.POST.get('password_again')