delete_impact
Analyze Django model deletion impact without touching the database. Identify cascade-deleted rows, PROTECT-blocked relations, and fields set to NULL across the model graph.
Instructions
Show what deleting one row of a model would take with it.
Follows on_delete across the whole model graph: which models lose rows
through CASCADE, which PROTECT relations would block the delete, and which
fields get set to NULL. Reads the graph only, never the database.
Args:
model_label: "app_label.ModelName", e.g. "shop.Customer".
max_depth: how far to follow chained cascades.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max_depth | No | ||
| model_label | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||