summaryrefslogtreecommitdiffstats
path: root/apps/patchwork
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2009-01-27 13:26:49 +1100
committerJeremy Kerr <jk@ozlabs.org>2009-01-27 13:26:49 +1100
commitae419adbd60ba0343baacb9de46ef27ac99bcbf7 (patch)
treea87588a438e18c46d74036a483747eb22e954e58 /apps/patchwork
parentf1b7d118c2387b54aa97434c84633a6c31eac2a3 (diff)
downloadpatchwork-ae419adbd60ba0343baacb9de46ef27ac99bcbf7.tar.bz2
patchwork-ae419adbd60ba0343baacb9de46ef27ac99bcbf7.tar.xz
[models] use case-insensitve lookup when creating confirmation
We were getting multiple entries when the case-sensitive lookup failed. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'apps/patchwork')
-rw-r--r--apps/patchwork/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/patchwork/models.py b/apps/patchwork/models.py
index 91c0f97..162fa21 100644
--- a/apps/patchwork/models.py
+++ b/apps/patchwork/models.py
@@ -325,7 +325,7 @@ class UserPersonConfirmation(models.Model):
return
person = None
try:
- person = Person.objects.get(email = self.email)
+ person = Person.objects.get(email__iexact = self.email)
except Exception:
pass
if not person: