Rafał Pitoń 11 лет назад
Родитель
Сommit
2f2ff6acce
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      misago/apps/activation/forms.py

+ 3 - 3
misago/apps/activation/forms.py

@@ -14,9 +14,9 @@ class UserSendActivationMailForm(Form):
     error_source = 'email'
 
     def clean_email(self):
+        data = self.cleaned_data['email']
         try:
-            self.found_user = User.objects.get_by_email(
-                self.cleaned_data['email'])
+            self.found_user = User.objects.get_by_email(data)
         except User.DoesNotExist:
             raise ValidationError(_("There is no user with such e-mail address."))
-        return email
+        return data