mirror of
https://github.com/django/django.git
synced 2024-12-22 17:16:24 +00:00
Improved error message for ASCIIUsernameValidator.
This commit is contained in:
parent
9976f3d4b8
commit
10bb21e71e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user