users: Make help text translatable

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
James Valleroy 2020-02-09 11:05:17 -05:00
parent 274e8a74fd
commit 8cec7893e7
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808

View File

@ -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,