Hey there,

You probably want this:
http://www.djangoproject.com/documentation/newforms/#customizing-widget-instances

You'll have to specify the field types for your model, then widget  
types for each field, and the extra attributes go in the widget.

Yrs,
E

On Jun 3, 2008, at 2:23 AM, Mayank Dhingra wrote:

>
> Hi,
>
> I was looking to add custom css to the fields of a (new)form that I
> created using ModelForm
> but couldn't find any mention or discussion on it.
>
> Does any know know how can I achieve it ?
>
> Thanks in advance,
>
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to