I am using signals to perform an action after an object has been deleted; however, sometimes I want to perform a different action (not the default one) depending on an arugment.
Is there a way to pass an argument to my signal catcher? Or will I have to abandon the signal and instead hard code what I want to do in the models ?
What I would like to do is something like this:
>>> MyModelInstance.delete()
# default pre_delete() signal is run, in this case, an email is sent
>>> MyModelInstance.delete(send_email=False)
# same signal is run, however, no email gets sent
Any ideas on the best approach?