Fix regex for username validator
\X doesn't work in Python so I use the .
This commit is contained in:
parent
e871c93b4e
commit
ff4db465ee
@ -2,4 +2,4 @@ from django.contrib.auth.validators import UnicodeUsernameValidator
|
|||||||
|
|
||||||
|
|
||||||
class CustomUsernameValidator(UnicodeUsernameValidator):
|
class CustomUsernameValidator(UnicodeUsernameValidator):
|
||||||
regex = r'^[\X]+$'
|
regex = r'^.+$'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user