Skip to content
This repository was archived by the owner on Feb 19, 2019. It is now read-only.

Commit defb3c4

Browse files
committed
bug 871921 - make the username on login allow longer values
1 parent 761d86d commit defb3c4

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

local_apps/pootle_profile/views.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,10 @@ def language_list(request):
9797

9898
def login(request):
9999
class LangAuthenticationForm(AuthenticationForm):
100+
# override because Django 1.3 makes this 30 characters only
101+
# and 75 is the varchar length of the auth.User model
102+
username = forms.CharField(label=_("Username"), max_length=75)
103+
100104
language = forms.ChoiceField(label=_('Interface Language'), choices=language_list(request),
101105
initial="", required=False)
102106

0 commit comments

Comments
 (0)