On Tuesday 02 March 2010 17:19:46 leoz01 wrote:
> Nobody could answer me? Maybe I haven't ask well?
> 
> > i have a simple question, how can i get the id attribute (which
> > correspond to html id) from a form's field ?
AFAIK you can't. But check the sources just to be sure. 


> > When i use my form i know there is an auto_id attribute for each field
> > which gives me the html correspondent id but if i set the auto_id to
> > False (f = MyForm(auto_id=False)) on what can i rely ?
I'm not sure I understant this one. Why do you want to rely on something? Is 
there a reason you are setting auto_id False?


> > I need that to have the id attribute in a custom widget.
I know this is not very helpful; but reading the sources can be useful here 
too. :/ `django.forms.forms.BoundField.label_tag` could be a good starting 
point.

Hope this helps a little.
 

-- 
Saygılarımla,
Atamert Ölçgen

 -+-
 --+
 +++

www.muhuk.com
mu...@jabber.org

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to