On Sun, 2009-05-17 at 18:43 -0700, Bobby Roberts wrote:
> in my view i have this:
> 
> 
>     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 should be looking in cleaned_data, see:

http://docs.djangoproject.com/en/1.0/topics/forms/#processing-the-data-from-a-form

For a ModelMultipleChoiceField, cleaned_data will be a list of model
instances. You shouldn't even have to think about the pk s.

sdc



--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to