# Django字段错误：无法将关键字'name'解析为字段。选择有：id, title, created_at

- **ID:** `python/django-query-set-ordered-error`
- **领域:** python
- **类别:** data_error
- **验证级别:** ai_generated
- **修复率:** 80%

## 根因

查询模型中不存在的字段。

## 版本兼容性

| 版本 | 状态 | 引入 | 弃用 |
|------|------|------|------|
| 3.x | active | — | — |

## 解决方案

1. **Check model fields and correct query** (95% 成功率)
   ```
   MyModel.objects.filter(title__icontains='keyword')
   ```
2. **Use exact field name from model** (90% 成功率)
   ```
   MyModel.objects.filter(id=1)
   ```

## 无效尝试

- **Assuming field exists from another model** — Each model has its own fields. (90% 失败率)
- **Using related field without double underscore** — Related fields require __. (70% 失败率)
