I'm trying to add a hook after deleting an object from Django Admin page. From the doc, I found that ModelAdmin has save_model
method where I can add a hook for Save action. However, I don't see anything like this for Delete action.
What I want to do is that whenever a user saves/deletes an object from say the Article model, I want to automatically add/remove a menu item from my Navigation model. For the delete action, I want to make sure that the user confirms deletion on Article object first before the system deletes the menu item.
Note that I only want to change the behaviour of Save/Delete action in Django Admin. That's why I don't want to add the hook to save/delete method of my model.
Thanks!