# django.db.models.deletion.ProtectedError: Cannot delete some instances of model 'Author' because they are referenced through protected foreign keys: 'Article.author'

- **ID:** `python/django-orm-delete-error`
- **Domain:** python
- **Category:** data_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

尝试删除被外键引用的对象，且外键设置了PROTECT

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 3.x | active | — | — |

## Workarounds

1. **** (95% success)
   ```
   article.delete() 然后 author.delete()
   ```
2. **** (90% success)
   ```
   在模型中设置on_delete=models.CASCADE
   ```

## Dead Ends

- **** — Django ORM没有force_delete方法，会破坏数据完整性 (90% fail)
- **** — 删除操作无法完成 (80% fail)
