> You should be looking in cleaned_data, see: > > http://docs.djangoproject.com/en/1.0/topics/forms/#processing-the-dat... > > For a ModelMultipleChoiceField, cleaned_data will be a list of model > instances. You shouldn't even have to think about the pk s. > > sdc
yeah i'm still lost... this is what i have now: forms.py class FrmIdMessage (forms.Form): posted_to = forms.ModelMultipleChoiceField (queryset=User.objects, required=True,widget=forms.CheckboxSelectMultiple()) message = forms.CharField (max_length=300, required=True, widget=forms.Textarea(attrs={'class':'smallblob'})) def clean_posted_to(self): data=self.cleaned_data['posted_to'] return data still results in the last checkbox checked... I'm not sure what to do in the clean function views.py #process or just push form if request.method=='POST': form=FrmIdMessage(request.POST) if form.is_valid(): #process valid form here assert False, request.POST.get('posted_to','') [snip] --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---