From 10bb21e71e3668f770493e2af0d0e0271830f7a3 Mon Sep 17 00:00:00 2001 From: Paolo Melchiorre Date: Wed, 28 Sep 2022 13:07:03 +0200 Subject: [PATCH] Improved error message for ASCIIUsernameValidator. --- django/contrib/auth/validators.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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