appli_socle/views: check creation of new users on the form not the view

This commit is contained in:
Benjamin Dauvergne 2013-09-26 14:16:32 +02:00
parent 371f689830
commit 884caf55b6
1 changed files with 1 additions and 1 deletions

View File

@ -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'])