Re: Newfroms - How to get the id for a field

2008-02-18 Thread Jorge Sousa
Hi, {{ fields }} is rendered by the as_widget() method of the BoundField class. Jorge On Feb 15, 2008 8:58 PM, Rajesh Dhawan <[EMAIL PROTECTED]> wrote: > > > > On Feb 14, 4:15 am, shabda <[EMAIL PROTECTED]> wrote: > > When using newforms, I want to get the id set on the input field. > > I am d

Re: Newfroms - How to get the id for a field

2008-02-15 Thread Rajesh Dhawan
On Feb 14, 4:15 am, shabda <[EMAIL PROTECTED]> wrote: > When using newforms, I want to get the id set on the input field. > I am doing something like, > {% for field in form %} > {{ field }} > ... > > Now this {{field}} will render as something like, > > > Withing the template how can I acces

Newfroms - How to get the id for a field

2008-02-14 Thread shabda
When using newforms, I want to get the id set on the input field. I am doing something like, {% for field in form %} {{ field }} ... Now this {{field}} will render as something like, Withing the template how can I access the value for id. If this is not possible where in code does Django set th