Re: change the default widget to a field in a modelform

2010-10-27 Thread refreegrata
If somebody know some way to save a Manytomany field (the departments) manually in the view and not with form.save() would be helpful. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroup

Re: change the default widget to a field in a modelform

2010-10-27 Thread refreegrata
Yes, I know that, this is strange. My models. -- Table 1: Enterprise Table 2: Department with : fk_enterprise = models.ForeignKey(Enterprise) Table 3: Item with: fk_departament = models.ManyToManyField(Departament)

Re: change the default widget to a field in a modelform

2010-10-27 Thread Daniel Roseman
On Oct 26, 7:54 pm, refreegrata wrote: > maybe I not explain correctly. For any modelForm the forms for a field > "ManytoMany"  are "select multiple". If I want to change this I must > to redefine the widget for that field in the declaration of the > "modelForm". This works correctly, I can transf

Re: change the default widget to a field in a modelform

2010-10-26 Thread refreegrata
maybe I not explain correctly. For any modelForm the forms for a field "ManytoMany" are "select multiple". If I want to change this I must to redefine the widget for that field in the declaration of the "modelForm". This works correctly, I can transform the field from "select multiple" to any "for

change the default widget to a field in a modelform

2010-10-19 Thread refreegrata
Hello list. I have a model with a ManyToMany field. For example: -- class Table(models.Model): myField = models.ManyToManyField(OtherTable) -- The modelForm