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():
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
2 matches
Mail list logo