Ticket #15322: unnecessary.diff
File unnecessary.diff, 686 bytes (added by , 14 years ago) |
---|
-
django/contrib/admin/forms.py
diff --git a/django/contrib/admin/forms.py b/django/contrib/admin/forms.py index 5a245a3..f26c100 100644
a b class AdminAuthenticationForm(AuthenticationForm): 25 25 if username and password: 26 26 self.user_cache = authenticate(username=username, password=password) 27 27 if self.user_cache is None: 28 if u sername is not None and u'@' in username:28 if u'@' in username: 29 29 # Mistakenly entered e-mail address instead of username? Look it up. 30 30 try: 31 31 user = User.objects.get(email=username)