From 54d659edb6a3cf35fe3d44a9bb456b3912bfa877 Mon Sep 17 00:00:00 2001 From: ibuler Date: Fri, 23 Jan 2015 23:40:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- juser/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/juser/views.py b/juser/views.py index a1851db51..7a61d7546 100644 --- a/juser/views.py +++ b/juser/views.py @@ -221,7 +221,7 @@ def user_edit(request): ldap_pwd = gen_rand_pwd(16) if username: - user = User.objects.filter(username=username) + user = User.objects.get(username=username) else: return HttpResponseRedirect('/')