From 884caf55b6dcc437a84b0898ee6a48b67ce09316 Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Thu, 26 Sep 2013 14:16:32 +0200 Subject: [PATCH] appli_socle/views: check creation of new users on the form not the view --- appli_project/appli_socle/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/appli_project/appli_socle/views.py b/appli_project/appli_socle/views.py index 562a7b7..f664dc2 100644 --- a/appli_project/appli_socle/views.py +++ b/appli_project/appli_socle/views.py @@ -252,7 +252,7 @@ class VueCodeDeConfirmationEmail(FormView): _(u'confirmation de l\'email {email} avec le jeton {jeton}'), email=form.value['email'], jeton=form.cleaned_data['jeton']) - if getattr(self, 'created', False): + if getattr(form, 'created', False): self.request.record('nouveau-compte-offre', _(u'création du compte {email}'), email=form.value['email'])