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,
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'}),)
>
>
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
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",
4 matches
Mail list logo