Re: Multi widget?

2011-01-03 Thread Sam Walters
Hi, I think you are looking to override the widget render() method to build multiple HTML form elements? Here is a good example: http://k0001.wordpress.com/2007/11/15/dual-password-field-with-django/ I have built heaps of these things, usually a choicefield + charfield, charfield + charfield,

Re: Multi widget?

2011-01-03 Thread Ilian Iliev
Two widgets to one field? Can you specify this little bit more? On Mon, Jan 3, 2011 at 12:29 PM, robos85 wrote: > Hi, > what I want to do, is to add 2 widgets to 1 field. So far I have: > > content = > forms.CharField(widget=forms.Textarea(attrs={'class':'add_editor'}),) > >

Multi widget?

2011-01-03 Thread robos85
Hi, what I want to do, is to add 2 widgets to 1 field. So far I have: content = forms.CharField(widget=forms.Textarea(attrs={'class':'add_editor'}),) But I also want to add some medi to it (tinymce .js files). How can I do that? -- You received this message because you are subscribed to the

Problems creating custom multi-widget....

2009-11-21 Thread mediumgrade
I am trying to create my own Dojo-aware Django widgets. I have defined the following class DojoDateWidget(forms.widgets.DateTimeInput): format = '%Y-%m-%d' def __init__(self, *args, **kwargs): kwargs.setdefault('attrs', {}).update({'dojoType': "dijit.form.DateTextBox",