summaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-08-01 20:16:15 +0200
committerDan McGee <dan@archlinux.org>2010-08-01 20:18:52 +0200
commit97322236b05c6988eccda2ddc9d48a2d1308c4a0 (patch)
tree1e91c2badca9535a602882fc2b01020c71ee37cf /devel
parent617c446aa74e86b5559152693e0251512982225a (diff)
downloadarchweb-97322236b05c6988eccda2ddc9d48a2d1308c4a0.tar.gz
archweb-97322236b05c6988eccda2ddc9d48a2d1308c4a0.tar.xz
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 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: