Small template fixes

This commit is contained in:
Skia
2016-09-02 19:31:47 +02:00
parent a0b1fa32e7
commit c5fd9d0076
6 changed files with 102 additions and 50 deletions

View File

@ -74,12 +74,12 @@ class User(AbstractBaseUser):
_('username'),
max_length=254,
unique=True,
help_text=_('Required. 254 characters or fewer. Letters, digits and @/./+/-/_ only.'),
help_text=_('Required. 254 characters or fewer. Letters, digits and ./+/-/_ only.'),
validators=[
validators.RegexValidator(
r'^[\w.@+-]+$',
r'^[\w.+-]+$',
_('Enter a valid username. This value may contain only '
'letters, numbers ' 'and @/./+/-/_ characters.')
'letters, numbers ' 'and ./+/-/_ characters.')
),
],
error_messages={