On Mar 23, 3:36 pm, Adam Fraser <adam.n.fra...@gmail.com> wrote: > I found the SelectMultiple widget here: > > http://docs.djangoproject.com/en/dev/ref/forms/widgets/ > > But I still don't know how to hook that up to a model like > CommaSeparatedIntegerField. > > help? >
Did you try something like this? This is off the top of my head: class MyForm(forms.ModelForm): my_choices = forms.CommaSeparatedIntegerField (widget=forms.SelectMultiple(choices=STAIN_CHOICES)) See: http://docs.djangoproject.com/en/dev/ref/forms/widgets/#specifying-widgets --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---