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
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)
2 matches
Mail list logo