Browse Source

Fixed variable name

Rafał Pitoń 11 years ago
parent
commit
2f2ff6acce
1 changed files with 3 additions and 3 deletions
  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'
     error_source = 'email'
 
 
     def clean_email(self):
     def clean_email(self):
+        data = self.cleaned_data['email']
         try:
         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:
         except User.DoesNotExist:
             raise ValidationError(_("There is no user with such e-mail address."))
             raise ValidationError(_("There is no user with such e-mail address."))
-        return email
+        return data