Re: Customizing ModelForm fields appearance

2008-12-25 Thread Praveen
You can create your own template and may add extra field and use your style sheet. On Dec 23, 10:48 pm, sergioh wrote: > You can always add your own custom fields, by default they override > the default fields that becomes with the modelform, and there is an > optional parameter "attributes", wh

Re: Customizing ModelForm fields appearance

2008-12-23 Thread sergioh
You can always add your own custom fields, by default they override the default fields that becomes with the modelform, and there is an optional parameter "attributes", which is used to add css class to your fields. On Dec 23, 9:47 am, sagi s wrote: > I really like the concept of generating a fo

Re: Customizing ModelForm fields appearance

2008-12-23 Thread Rajesh Dhawan
sagi s wrote: > I really like the concept of generating a form from a model using > ModelForm but would like to customize the apprearance slightly (e.g. > size of the TextInput etc.). > > Any suggestion as to how to do this? A standard way to do this is via CSS. When you render your form in your

Customizing ModelForm fields appearance

2008-12-23 Thread sagi s
I really like the concept of generating a form from a model using ModelForm but would like to customize the apprearance slightly (e.g. size of the TextInput etc.). Any suggestion as to how to do this? I looked at the forms module code but got lost in the maze of the meta programming... Thanks