refactor: user model
This commit is contained in:
parent
8a088e6c75
commit
2da3eac1b5
@ -87,10 +87,10 @@ class UserManageSerializer(serializers.Serializer):
|
||||
required=True,
|
||||
label=_("Username"),
|
||||
max_length=20,
|
||||
min_length=6,
|
||||
min_length=4,
|
||||
validators=[
|
||||
validators.RegexValidator(
|
||||
regex=re.compile("^.{6,20}$"),
|
||||
regex=re.compile("^.{4,20}$"),
|
||||
message=_('Username must be 6-20 characters long')
|
||||
)
|
||||
]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user