Re: Changing the AuthenticationForm username's max_length field (impossible!?)

2008-08-31 Thread keltus
Works great. Thanks Julien. On Aug 30, 9:32 pm, Julien Phalip <[EMAIL PROTECTED]> wrote: > Keltus, > > The patch I mentioned in that thread solved the problem of validating > the input. For the rendering of the form, you also need to patch the &

Changing the AuthenticationForm username's max_length field (impossible!?)

2008-08-30 Thread keltus
After many frustrating hours, I have yet to monkey patch the form.username variable from: to In my urls.py file, I added: from django.contrib.auth.forms import AuthenticationForm AuthenticationForm.base_fields['username'].max_length = 75 AuthenticationForm.base_fields['username'].label =