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 call function student_is_removed() or  
student_is_added().

I tried do this with overriding save(), but I have no idea, how can I  
get old value to check how many student go in/out relation.

Have you any ideas?

best regards
Krzysztof Kaczmarek



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to