Re: Setting different attributes in a SplitDateTimeWidget

2008-09-01 Thread diadya_vova
Hello Torsten, I just looked for a way to assign different classes for this widget. Thank you for this code sample. On 21 июл, 14:28, Torsten Bronger <[EMAIL PROTECTED]> wrote: > Hallöchen! > > I wanted to have those neat Javascript functions with my > DateTimeField that Django's admin facility o

Setting different attributes in a SplitDateTimeWidget

2008-07-21 Thread Torsten Bronger
Hallöchen! I wanted to have those neat Javascript functions with my DateTimeField that Django's admin facility offers. However, the only way I found to achieve this was: class MyModelForm(ModelForm): def __init__(self, data=None, **keyw): super(MyModelForm, self).__init__(data, **ke