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):
|
class ASCIIUsernameValidator(validators.RegexValidator):
|
||||||
regex = r"^[\w.@+-]+\Z"
|
regex = r"^[\w.@+-]+\Z"
|
||||||
message = _(
|
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."
|
"numbers, and @/./+/-/_ characters."
|
||||||
)
|
)
|
||||||
flags = re.ASCII
|
flags = re.ASCII
|
||||||
|
|
Loading…
Reference in New Issue