suggest_fixes
Categorize Django code analysis findings into mechanical, generated, and advisory fixes, clarifying which changes are safe to apply and which need human decision.
Instructions
Findings turned into code, grouped by how safe each one is to apply.
Three classes, and the distinction is the point:
- **mechanical**: one correct answer derivable from the code alone, such as
datetime.now() becoming timezone.now(). No judgement in it.
- **generated**: a machine can write the artefact, a human decides whether
it should exist. An index migration is exactly right as text and entirely
wrong if that table is write-heavy.
- **advisory**: real code with the right names resolved, but the decision
belongs to somebody who knows the domain. Which user owns a row is not a
question the AST can answer.
Nothing is applied. The CLI `fix --write` applies the mechanical class only.
Args:
tenant_root: the model that owns data, for the ownership suggestions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tenant_root | No | auth.User |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||