Ticket #17504: patch.diff
File patch.diff, 687 bytes (added by , 13 years ago) |
---|
-
django/contrib/auth/models.py
121 121 Creates and saves a User with the given username, email and password. 122 122 """ 123 123 now = timezone.now() 124 125 124 # Normalize the address by lowercasing the domain part of the email 126 125 # address. 127 126 email = email or '' 128 127 try: 129 email_name, domain_part = email.strip(). split('@', 1)128 email_name, domain_part = email.strip().rsplit('@', 1) 130 129 except ValueError: 131 130 pass 132 131 else: