Sorry xD Hi, i wrote the same text in a Spanish blog xD, well I explain my problem, I have a table that has the following model:
class Proyectos(models.Model): titulo=models.CharField(max_length=100) creacion=models.DateField(default=datetime.datetime.now) estado=models.CharField(max_length=30) objetivo=models.TextField(null=True) conclusion=models.TextField(null=True) porcentaje=models.IntegerField() modificado=models.DateTimeField(default=datetime.datetime.now) autor=models.IntegerField() usuarios=models.ManyToManyField(User) proyectos_rel=models.ManyToManyField("self") documentos=models.ManyToManyField(Documentos) class Meta: db_table='Proyectos' def __unicode__(self): return self.titulo In my application will logically appears that a project may have multiple users that are related to it, the problem is when after a call to a function. js, I want to eliminate one of those users. For example, "pepe", "pepe1", "pepe2" are users of the project. I delete returns "pepe" I try in every way like this: datos=Proyectos.objects.get(id=identificador) if request.POST.get('usuarios','')!='': datos.usuarios.add(request.POST.get('usuarios')) if request.POST.get('usuariosDelete','')!='': datos.usuarios=[] What this does is to completely eliminate the Projectos, in which the user is. Do not know how to remove it from the list of users. Thank you very much for the answers. A greeting -- 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.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.