Hi ! I have the following models, with a ManyToMany field:
class Symptome(TypeMedical): synonyms = models.CharField(u'Synonymes',max_length=160,blank=True) parent = models.ManyToManyField(TypeMedical,related_name='Parent',blank=True) description = models.TextField(u'Description',blank=True) class Ligne(models.Model): weight = models.FloatField(u'Poids') symptoms = models.ManyToManyField(Symptome,verbose_name=u'Symptomes') diagnosis = models.ForeignKey(Symptome,related_name=u'Cause par') required = models.BooleanField(u'Obligatoire') I am writing a form in order to edit 'Symptome' objects. We can have multiple "Ligne" objects refering to a "Symptome" so I am using a formset. I want the user to be able to add or delete rows in the form so I am using the django-dynamic-formset app (http://code.google.com/p/ django-dynamic-formset/). My problem is that I want to use the FilteredSelectMultiple widget provided by the django admin. it works for the first form of the formset, but when I try to add other forms, a basic select widget is displayed. I added the line: SelectFilter.init("id_ligne-"+formCount+"-symptoms", "Sympt\u00F4mes", 0, "/media/") in the javascript "dynamic-formset" file. Now the right widget is displayed for all the new lines I add. However, when I click on "select all" or "delete all" buttons in the second, third (etc) widgets, all the actions are performed only on the first one. Moreover, I can select individually any item in the select widgets except in the first one. Do you have any idea of how I could handle this? I can't find anything! Thank you! Thomas. -- 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.