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

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

## 根因

查询集过滤或排序引用了模型中不存在的字段。

## 版本兼容性

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

## 解决方案

1. **** (90% 成功率)
   ```
   Correct the field name in the query. For example: MyModel.objects.filter(name='example') instead of unknown_field.
   ```

## 无效尝试

- **** — Doesn't fix the actual query; field name must be corrected in the code. (80% 失败率)
- **** — Database schema won't match, causing runtime errors. (60% 失败率)
