Re: Beginner: Creating a form with variable number of checkboxes

2014-12-04 Thread Collin Anderson
Hi, The forms.ModelMultipleChoiceField might help you out here. class UpdateGroup(forms.Form): non_member_checkboxes = forms.ModelMultipleChoiceField( queryset=User.objects.all(), widget=forms.CheckboxSelectMultiple, ) Collin On Tuesday, December 2, 2014 7:27:47 PM

Beginner: Creating a form with variable number of checkboxes

2014-12-02 Thread T Kwn
I'm creating a page where the user can add other users to a group. I am able to dynamically fetch all users and list them on a template with checkboxes. I'm getting stuck creating a form for them however. I read this post (among others)