Code

Ticket #16837: 16837.general_error_message.diff

File 16837.general_error_message.diff, 631 bytes (added by Wim Feijen <wim@…>, 3 years ago)
Line 
1diff --git a/django/contrib/admin/forms.py b/django/contrib/admin/forms.py
2index f26c100..7d85753 100644
3--- a/django/contrib/admin/forms.py
4+++ b/django/contrib/admin/forms.py
5@@ -6,8 +6,7 @@ from django.contrib.auth.models import User
6 
7 from django.utils.translation import ugettext_lazy, ugettext as _
8 
9-ERROR_MESSAGE = ugettext_lazy("Please enter a correct username and password. "
10-                              "Note that both fields are case-sensitive.")
11+ERROR_MESSAGE = ugettext_lazy("Username and password incorrect or access to this page is restricted.")
12 
13 class AdminAuthenticationForm(AuthenticationForm):
14     """