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
I have reviewed the document
https://docs.djangoproject.com/en/dev/topics/db/queries/
but I can not insert the field users, the models.py table, I try as
follows, is this what was spinning in the other issue, not the
complete code, thanks:
for i in request.POST.getlist('usuarios'):
usuario=Use
3 matches
Mail list logo