Re: integer digit limit

2008-07-15 Thread Bobby Roberts
>   some_field = forms.IntegerField(widget=forms.TextInput(attrs={'maxlength': PERFECT! I missed that attrs dictionary in the form widgets... man that is really awesome! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Gro

Re: integer digit limit

2008-07-15 Thread Arien
On Tue, Jul 15, 2008 at 10:30 AM, Bobby Roberts <[EMAIL PROTECTED]> wrote: > I've got an IntegerField setup with a max_value of 20. I'm > wondering how to limit the initial input on the form field to no more > than 6 characters. You can pass the fields widget an optional attrs keyword argume

integer digit limit

2008-07-15 Thread Bobby Roberts
hi I've got an IntegerField setup with a max_value of 20. I'm wondering how to limit the initial input on the form field to no more than 6 characters. They can enter 20 characters for example. When they hit the submit button of course it will error out but i'd like to limit the initial len