diff options
| author | Paolo Melchiorre <paolo@melchiorre.org> | 2022-09-28 13:07:03 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-09-28 13:07:03 +0200 |
| commit | 10bb21e71e3668f770493e2af0d0e0271830f7a3 (patch) | |
| tree | a02a4c334f6c14dff22001409e00928980b2bd86 | |
| parent | 9976f3d4b80cfb2e6f4c998438622b78eb1ac53e (diff) | |
Improved error message for ASCIIUsernameValidator.
| -rw-r--r-- | django/contrib/auth/validators.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/contrib/auth/validators.py b/django/contrib/auth/validators.py index 55f70283cc..82fa7b2d73 100644 --- a/django/contrib/auth/validators.py +++ b/django/contrib/auth/validators.py @@ -9,7 +9,7 @@ from django.utils.translation import gettext_lazy as _ class ASCIIUsernameValidator(validators.RegexValidator): regex = r"^[\w.@+-]+\Z" message = _( - "Enter a valid username. This value may contain only English letters, " + "Enter a valid username. This value may contain only ASCII letters, " "numbers, and @/./+/-/_ characters." ) flags = re.ASCII |
