Re: Set attributes to input using newforms

2007-11-01 Thread Malcolm Tredinnick
On Thu, 2007-11-01 at 19:08 +, Henhiskan wrote: > Hi fellows, > Am using django-0.96 and I need to set an input html attribute from a > newforms > I need to use a time picker from dojo, for that I need to have > something like this: > dojoType="dropdowntimepicker"> > > The only solution I ca

Re: Set attributes to input using newforms

2007-11-01 Thread Henhiskan
There is no widget docs for v0.96 documentation, but I just read the doc of current dojo version, and find the solution to my problem, just: discovered_time = forms.TimeField(widget=forms.TextInput(attrs={'dojoType':'dropdowntimepicker'})) Cheers.- --~--~-~--~~~---~