I wanted to track my models and their CRUD operations through handling post_save, delete and init signals, and then save entry to the Database about this operation handled.
def handle_model_saved(sender, **kwargs):
"""Trap the signal and do whatever is needed"""
entry=CRUD_Storage()
entry.entry='Object \"'+sender._meta.module_name+'\" was saved.'
entry.save()
Then the funny thing, it is a recursion of saves…
I created model CRUD_Storage, i want to prevent it sending signals like pre(post)init, delete, save.
I don’t think you can prevent Django from sending those signals.
However, you can adapt your handler to not log saves for your
CRUD_Storagemodel.