On 5/15/07, Milan Andric <[EMAIL PROTECTED]> wrote: > > A friend on IRC informed me .. > > since the object has no ID yet > and an m2m is a link between IDs > t = Tutorial(...everything but author...) > t.save() > t.author.add(user1)
FYI, the following is also legal: t = Tutorial(...everything but author...) t.save() t.author = [user1, user2] 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?hl=en -~----------~----~----~----~------~----~------~--~---