Tomek  committed e650b78

Got rid of iexact filter in registration form.

  • Participants
  • Parent commits d36a382
  • Branches default

Comments (0)

Files changed (1)

File registration/

-            user = User.objects.get(username__iexact=self.cleaned_data['username'])
+            user = User.objects.get(username=self.cleaned_data['username'])
         except User.DoesNotExist:
             return self.cleaned_data['username']
         raise forms.ValidationError(_("A user with that username already exists."))
-        if User.objects.filter(email__iexact=self.cleaned_data['email']):
+        if User.objects.filter(email=self.cleaned_data['email']):
             raise forms.ValidationError(_("This email address is already in use. Please supply a different email address."))
         return self.cleaned_data['email']