mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-27 10:44:33 +00:00
users: Make help text translatable
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
274e8a74fd
commit
8cec7893e7
@ -90,8 +90,8 @@ class UsernameValidator(validators.RegexValidator):
|
|||||||
|
|
||||||
USERNAME_FIELD = forms.CharField(
|
USERNAME_FIELD = forms.CharField(
|
||||||
max_length=150, validators=[UsernameValidator()],
|
max_length=150, validators=[UsernameValidator()],
|
||||||
help_text='Required. 150 characters or fewer. English letters, \
|
help_text=ugettext_lazy('Required. 150 characters or fewer. English '
|
||||||
digits and @/./-/_ only.')
|
'letters, digits and @/./-/_ only.'))
|
||||||
|
|
||||||
|
|
||||||
class CreateUserForm(ValidNewUsernameCheckMixin,
|
class CreateUserForm(ValidNewUsernameCheckMixin,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user