{
  "id": "python/django-field-error-null",
  "signature": "django.core.exceptions.FieldError: Cannot resolve keyword 'author_id' into field. Choices are: id, name, email, created_at",
  "signature_zh": "字段错误：无法解析关键字'author_id'，可选字段为：id, name, email, created_at",
  "regex": "django\\.core\\.exceptions\\.FieldError:\\ Cannot\\ resolve\\ keyword\\ 'author_id'\\ into\\ field\\.\\ Choices\\ are:\\ id,\\ name,\\ email,\\ created_at",
  "domain": "python",
  "category": "data_error",
  "subcategory": null,
  "root_cause": "ORM查询中使用了不存在的字段名，或关联查询语法错误",
  "root_cause_type": "generic",
  "root_cause_zh": "查询时引用了模型不存在的字段，通常因为拼写错误或关联名称错误",
  "versions": [
    {
      "version": "3.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "数据库表结构未更新，查询仍会失败",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "语法正确但逻辑错误，会查询关联对象的主键而非外键字段",
      "fail_rate": 0.5,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.9,
      "how": "使用Article.objects.filter(author__name='John')代替author_id",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.85,
      "how": "Article.objects.filter(author__id=1)",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": null,
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.82,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-02-18",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}