mirror of
https://github.com/mediacms-io/mediacms.git
synced 2025-07-25 15:03:31 +00:00
format content (#198)
This commit is contained in:
@ -8,10 +8,7 @@ from django.utils.translation import gettext_lazy as _
|
||||
@deconstructible
|
||||
class ASCIIUsernameValidator(validators.RegexValidator):
|
||||
regex = r"^[\w]+$"
|
||||
message = _(
|
||||
"Enter a valid username. This value may contain only "
|
||||
"English letters and numbers"
|
||||
)
|
||||
message = _("Enter a valid username. This value may contain only " "English letters and numbers")
|
||||
flags = re.ASCII
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user