summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-08-01 13:16:15 -0500
committerDan McGee <dan@archlinux.org>2010-08-01 13:18:52 -0500
commit97322236b05c6988eccda2ddc9d48a2d1308c4a0 (patch)
tree1e91c2badca9535a602882fc2b01020c71ee37cf /devel
parent617c446aa74e86b5559152693e0251512982225a (diff)
Fix stupid mistake in user parsing
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'devel')
-rw-r--r--devel/management/commands/reporead.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/devel/management/commands/reporead.py b/devel/management/commands/reporead.py
index 777ebb93..21021b39 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: