Thursday, February 6, 2014

Re: Checkboxes collection instead of a multiple select

On Thu, Feb 6, 2014 at 11:15 AM, Jonathan Querubina
<john.chronus@gmail.com> wrote:
> Hi guys,
>
> How do i show a collection of checkboxes instead of a multiple select?
>
> Thanks!

Sounds like you want to change the widget on a form:

https://docs.djangoproject.com/en/1.6/ref/forms/widgets/

Specifically, changing it from a SelectMultiple widget to a
CheckboxSelectMultiple:

https://docs.djangoproject.com/en/1.6/ref/forms/widgets/#checkboxselectmultiple

Cheers

Tom

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAFHbX1%2B7xxQYugLU8M%3DBq58pbfyZhF1WAHa31NpJr1xDsxcKgQ%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment