Fix username's maximum length to match the backend

when create a user, we can input length more 255 character,
but it will report a error 'User name should not be greater
than 255 characters (HTTP 400)'.

Change-Id: Ib2a3d2f6783e1c107d9a2cf87877442a9171480d
Closes-bug:#1291216
This commit is contained in:
tinytmy 2014-03-13 00:23:55 -07:00
parent 75c08b235f
commit 7de27824e5

View File

@ -79,7 +79,7 @@ class CreateUserForm(BaseUserForm):
domain_name = forms.CharField(label=_("Domain Name"),
required=False,
widget=forms.HiddenInput())
name = forms.CharField(label=_("User Name"))
name = forms.CharField(max_length=255, label=_("User Name"))
email = forms.EmailField(
label=_("Email"),
required=False)