On 8/30/06, Nowell <[EMAIL PROTECTED]> wrote:

I believe that the correct way to accomplish this is:

temp = Message(...)
temp.save()
temp.teams = Team.objects.filter(id__in=data.getlist('teams'))

Notice you need to use the getlist() function to return a list of the
M2M selections, the previous code will return only the last element.

Aagh!  Yes, you are correct. Thanks for cleaning up after my stupid :-)

Yours,
Russ Magee %-)

--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to