Ticket #6943: 6943-admin-multiple-emails.diff
File 6943-admin-multiple-emails.diff, 732 bytes (added by , 17 years ago) |
---|
-
django/contrib/admin/sites.py
228 228 user = User.objects.get(email=username) 229 229 except User.DoesNotExist: 230 230 message = _("Usernames cannot contain the '@' character.") 231 except User.MultipleObjectsReturned: 232 message = _("Your e-mail address is not your username") 231 233 else: 232 234 message = _("Your e-mail address is not your username. Try '%s' instead.") % user.username 233 235 return _display_login_form(request, message)