I don't see anything called SelectMultiple on the page you linked. That was the page I've been scouring for a while now looking for a way to do this. The ModelMultipleChoiceField looks promising, but apparently it's associated with a ManyToManyField model, and that doesn't really fit what I'm going for, but seems to complicate things, requiring me to make a whole separate model class and add the corresponding tables and columns to my database when all I want are a few static choices.
Thanks for taking the time to respond! Any other ideas? -Adam On Mar 23, 3:09 pm, Briel <toppe...@gmail.com> wrote: > Hi. > > I haven't played much around with this kind of thing, but I > would suggest that you take a look at the form widgets. > One of them is called, SelectMultiple, which I bet is the one > you are after, but I'm not sure if it will work with choices. > You can find something about it > athttp://docs.djangoproject.com/en/dev/topics/forms/modelforms/ > > ~Jakob > > On 23 Mar., 19:49, Adam Fraser <adam.n.fra...@gmail.com> wrote: > > > Hello, > > > This should be a pretty simple question. I have a list of options: > > > STAIN_CHOICES = ( > > (1, 'DNA - DAPI'), > > (2, 'DNA - Hoechst'), > > (3, 'DNA - other'), > > (4, 'Actin - Phalloidin'), > > (5, 'Tubulin'), > > ) > > > I would like users to be able to select more than one of these things > > at a time. It looks like models.CommaSeparatedIntegerField would be > > good for this, but how can I get a multi-selection list box as an > > input? > > > -adam --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---