what_happens_on
Trace what a model save or delete triggers across connected signal handlers. Uncover hidden writes, cache clears, and queued tasks that occur indirectly.
Instructions
Follow the signal chain a save or delete actually triggers.
Nothing at an `order.save()` call site hints that it also writes an Invoice,
clears a cache and queues a task, because the receivers live elsewhere and
were connected in AppConfig.ready(). Tools that list registered receivers
exist; this follows the chain, because the second hop is where the surprise
lives.
It is also the other half of delete_impact, which deliberately ignores
signals and says so.
Args:
model_label: "app_label.ModelName".
event: "save" or "delete".
max_depth: how far to follow writes into further signals.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| event | No | save | |
| max_depth | No | ||
| model_label | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||