1
0
mirror of https://github.com/django/django.git synced 2025-10-25 22:56:12 +00:00

Fixed #5605: only lowercase the domain portion of an email address in UserManager.create_user.

Thanks, Leo.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@12641 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Jacob Kaplan-Moss
2010-03-01 20:30:44 +00:00
parent 8b2662c5de
commit 973bf6f485
3 changed files with 34 additions and 6 deletions

View File

@@ -219,4 +219,13 @@ True
>>> form.cleaned_data['email']
u'jsmith3@example.com'
# bug #5605, preserve the case of the user name (before the @ in the email address)
# when creating a user.
>>> user = User.objects.create_user('test2', 'tesT@EXAMple.com', 'test')
>>> user.email
'tesT@example.com'
>>> user = User.objects.create_user('test3', 'tesT', 'test')
>>> user.email
'tesT'
"""