mirror of https://github.com/django/django.git
Fixed #21387 -- Merge two very similar help texts.
This commit is contained in:
parent
87908b4fc2
commit
a9093dd376
|
@ -358,8 +358,8 @@ class AbstractUser(AbstractBaseUser, PermissionsMixin):
|
||||||
Username, password and email are required. Other fields are optional.
|
Username, password and email are required. Other fields are optional.
|
||||||
"""
|
"""
|
||||||
username = models.CharField(_('username'), max_length=30, unique=True,
|
username = models.CharField(_('username'), max_length=30, unique=True,
|
||||||
help_text=_('Required. 30 characters or fewer. Letters, numbers and '
|
help_text=_('Required. 30 characters or fewer. Letters, digits and '
|
||||||
'@/./+/-/_ characters'),
|
'@/./+/-/_ only.'),
|
||||||
validators=[
|
validators=[
|
||||||
validators.RegexValidator(r'^[\w.@+-]+$', _('Enter a valid username.'), 'invalid')
|
validators.RegexValidator(r'^[\w.@+-]+$', _('Enter a valid username.'), 'invalid')
|
||||||
])
|
])
|
||||||
|
|
Loading…
Reference in New Issue