>
> for s in site:
>     ti.site.add(s)
>
> almost worked.  I got an error that the ManyRelatedManager wasn't
> iterable.  So I did a little research and found that
>
> for s in site.all():
>     ti.site.add(s)
>
> that works because the query set that it builds is iterable.

Yes. Sorry, I should've suggested that in my original snippet. The
singular field name keeps giving me a brain freeze. You should
seriously consider renaming that M2M field to sites if you need my
help ;)


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

Reply via email to