How to override a related sets "add" method?
Posted
by MB_
on Stack Overflow
See other posts from Stack Overflow
or by MB_
Published on 2010-05-21T10:46:21Z
Indexed on
2010/05/21
10:50 UTC
Read the original article
Hit count: 207
I am working on a django project and i want to send a signal when something get's added to some models related set, e.g. we have an owner wo has a set of collectables and each time the method owner.collectable_set.add(something) is getting called i want signal like "collectable_added" or something. signals are clear to me, but in which manager(?) the "add" method sits that i want to override is unclear to me.
© Stack Overflow or respective owner