summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2008-09-11 17:11:29 +1000
committerJeremy Kerr <jk@ozlabs.org>2008-09-11 17:11:29 +1000
commitd07bf0674ea09983c291ac279a9a35565c305bc2 (patch)
treeebe27aee28c9f3cad4d73382b998607ca1fc6151 /apps
parentf50fceb55d5530318dac1d2bf679558268a2a230 (diff)
downloadpatchwork-d07bf0674ea09983c291ac279a9a35565c305bc2.tar.bz2
patchwork-d07bf0674ea09983c291ac279a9a35565c305bc2.tar.xz
Save confirmation object before trying to render user-link email
We need the key, which is generated in save() Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'apps')
-rw-r--r--apps/patchwork/views/user.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/patchwork/views/user.py b/apps/patchwork/views/user.py
index b042d35..f9ff7f8 100644
--- a/apps/patchwork/views/user.py
+++ b/apps/patchwork/views/user.py
@@ -69,6 +69,7 @@ def link(request):
if form.is_valid():
conf = UserPersonConfirmation(user = request.user,
email = form.cleaned_data['email'])
+ conf.save()
context['confirmation'] = conf
try:
@@ -77,7 +78,6 @@ def link(request):
context),
settings.DEFAULT_FROM_EMAIL,
[form.cleaned_data['email']])
- conf.save()
except Exception, ex:
context['confirmation'] = None
context['error'] = 'An error occurred during confirmation. ' + \