Re: Delete a many to many field who is in another table

2011-11-30 Thread jose osuna perez
I try to make this using delete, remove.. Also I using too if request.POST.get('experimentosDelete','')!='': for i in request.POST.getlist('experimentosDelete'): exp=Experimentos.objects.get(proyecto=datos,id=i) exp.experimentos=[] ...

Delete a many to many field who is in another table

2011-11-30 Thread jose osuna perez
Hi, I am finally going to finish the project started and where I end up liking this xD Django that the problem I have is the clearing of a field. I have the following tables. class Proyectos(models.Model): titulo=models.CharField(max_length=100)

Automatic Submit

2011-11-24 Thread jose osuna perez
I get that it was not necessary to press the button "Save" for the sbmit. Do so without having to press the button(save or enter), that when you pass this sequence is executed automatically. Thanks -- You received this message because you are subscribed to the Google Groups "Django users"

Upload a file

2011-11-24 Thread jose osuna perez
My last question is whether anyone can tell me how to upload files of any kind, not just image. I've got the image, changing the picture of a user (in my program) but do not know how to upload files ... Thanks in advance. -- You received this message because you are subscribed to the Google

Delete a Field...

2011-11-24 Thread jose osuna perez
Hello, I have a question that I have not been resolved, well three, took and a few days researching the subject, but this being impossible I would appreciate your help, as they are the last 3 points I have left to complete a project: I have the class: class Proyectos(models.Model):

Re: delete a field( many to many)

2011-11-10 Thread jose osuna perez
Thank very much, but I don't know what's happen. I execute the next code and it's doing nothing : if request.POST.get('usuariosDelete','')!='': for i in request.POST.getlist('usuarios'): usuario=User.objects.get(id=i) datos.usuarios.remove(usuario) --

Re: delete a field( many to many)

2011-11-09 Thread jose osuna perez
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)

delete a field( many to many)

2011-11-09 Thread jose osuna perez
Hola, bueno les explico mi problema, tengo 1 tabla que tiene el siguiente modelo: class Proyectos(models.Model): titulo=models.CharField(max_length=100) creacion=models.DateField(default=datetime.datetime.now) estado=models.CharField(max_length=30)

Re: Add to database

2011-10-13 Thread jose osuna perez
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

Add to database

2011-10-11 Thread jose osuna perez
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'):