djangosnippets.org: Latest snippets tagged with 'multiple select'https://djangosnippets.org/tags/multiple-select/2010-06-23T17:01:24.948565-05:00Multiple Select Widget with jQueryUI
2010-06-23T17:01:24.948565-05:00maguspkhttps://djangosnippets.org/snippets/2079/<p>This widget can be imported in your forms.py file and used like so:</p>
<p>formfield = forms.ModelMultipleChoiceField(widget=MultiSelectWidget, queryset=Model.objects.all())</p>
<p>The javascript is provided by <a href="http://github.com/michael/multiselect/tree/next">Michael's Multiselect</a>. In addition to the javascript you will need <a href="http://jqueryui.com/">jQuery (the latest release is fine) and jQuery UI</a>. The convenient thing is that this widget …</p>
Freely redistributable