Re: dtect changes for many-to-many relation

2007-06-04 Thread sansmojo
Sorry for the double post, but I forgot to mention how I solved it. It's pretty easy to create your own forms in the admin for something like this by using newforms and stealing styles from Django! When I get time, I'm going to write a mini tutorial on how to use newforms to make your own forms l

Re: dtect changes for many-to-many relation

2007-06-04 Thread sansmojo
I've been trying something similar to this myself. I can tell you that you can't do it by overriding save. I've also explored using signals with post_save and pre_save, but even they won't work since the ManyToManyField relation is not handled until after all of that. There is talk about a post_

dtect changes for many-to-many relation

2007-06-03 Thread sihing Krzysztof Kaczmarek
Hello, class Section(models.Model): name = models.CharField(blank=True, unique=True, maxlength=100) students = models.ManyToManyField (Student,filter_interface=models.HORIZONTAL) I want detect students-field's changes and when a Student is remove or add to relation, I want ca