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('/')