forms: fix typo when setting the user model backend

This commit is contained in:
Benjamin Dauvergne 2013-09-06 11:02:16 +02:00
parent 1ef75a807d
commit b672a03ff7
1 changed files with 1 additions and 1 deletions

View File

@ -233,7 +233,7 @@ class CodeDeConfirmationForm(forms.Form):
except models.ProfilOffre.DoesNotExist:
try:
self.user_cache = User.objects.get(id=user_id)
self.user_cache.backend = 'django.contrib.auth.backends.ModelBackend',
self.user_cache.backend = 'django.contrib.auth.backends.ModelBackend'
except User.DoesNotExist:
raise forms.ValidationError(_(u'Ce jeton est invalide ou expiré,'
u' veuillez-en demander un nouveau en vous réinscrivant'