diff options
-rw-r--r-- | exam/forms.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/exam/forms.py b/exam/forms.py index 0ae9d65..cb2d37d 100644 --- a/exam/forms.py +++ b/exam/forms.py @@ -28,7 +28,7 @@ class UserRegisterForm(forms.Form): raise forms.ValidationError(msg) try: - User.objects.get(username__iexact = u_name) + User.objects.get(username__exact = u_name) raise forms.ValidationError("Username already exists.") except User.DoesNotExist: return u_name |