Commits

GvS  committed c794275

username is case sensitive

  • Participants
  • Parent commits fad7080

Comments (0)

Files changed (1)

File registration/forms.py

         
         """
         try:
-            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."))