Thanks you¡¡¡ I'll try to see if it works
--
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.co
I think you need to look up a specific Proyecto object before trying to
add users to it. So:
proyecto = Proyecto.objects.get(...)
for i in request.POST.getlist('usuarios'):
usuario = User.objects.get(id=i)
proyecto.usuarios.add(usuario)
Hope that helps,
Brett
On 10/11/11 4:15 AM, "jose
2 matches
Mail list logo