From 97322236b05c6988eccda2ddc9d48a2d1308c4a0 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Sun, 1 Aug 2010 13:16:15 -0500 Subject: Fix stupid mistake in user parsing Signed-off-by: Dan McGee --- devel/management/commands/reporead.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'devel') diff --git a/devel/management/commands/reporead.py b/devel/management/commands/reporead.py index 777ebb9..21021b3 100644 --- a/devel/management/commands/reporead.py +++ b/devel/management/commands/reporead.py @@ -161,7 +161,7 @@ def find_user(userstring): for token in name.split(): name_q &= (Q(first_name__icontains=token) | Q(last_name__icontains=token)) - user = User.objects.get(name_q) + return User.objects.get(name_q) for matcher in (user_email, profile_email, user_name): try: -- cgit v1.2.3-24-g4f1b