Re: Changing many-to-many using Admin Site never calls post_remove Signal

2015-01-30 Thread Tobias Dacoir
not very nice, and probably not pythonic (still learning) but now I added another two for loops to find old references and delete them: if action == "post_add": if isinstance(instance, Database): # then update pairs for a in instance.audioData():

Changing many-to-many using Admin Site never calls post_remove Signal

2015-01-30 Thread Tobias Dacoir
I have a many-to-many relationship which the Admin can change using the Admin Site. I use a ModelAdmin.filter_horizontal, but even with the default widget it's the same. I registered a receiver when m2m_changed, however it always only calls: pre_clear, post_clear, pre_add, post_add, in that ord