Django: m2m_changed not fired when end of relation is deleted
问题 NOTICE : due to production environment constraints, I must stick to django-1.4 for the moment. I've just made a test to see whether I can hook onto an event when ManyToMany changes. I have a Group model that holds several Item objects. Whenever the items change in any group, I want to do something with concerned Group` instances. from django.db import models from django.db.models.signals import m2m_changed, post_delete, pre_delete class Item(models.Model): name = models.CharField(max_length