{
  "id": "python/django-orm-query-inefficiency",
  "signature": "django.core.exceptions.FieldError: Cannot resolve keyword 'author_name' into field. Choices are: author, author_id, title, published_date",
  "signature_zh": "字段错误：无法将关键字 'author_name' 解析为字段。可选字段：author, author_id, title, published_date",
  "regex": "django\\.core\\.exceptions\\.FieldError:\\ Cannot\\ resolve\\ keyword\\ 'author_name'\\ into\\ field\\.\\ Choices\\ are:\\ author,\\ author_id,\\ title,\\ published_date",
  "domain": "python",
  "category": "data_error",
  "subcategory": null,
  "root_cause": "Attempting to filter by a non-existent field name, maybe due to wrong related field access.",
  "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": "Using author__name instead of author__name__icontains still fails if field doesn't exist.",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Adding a property to model doesn't make it queryable in ORM.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.95,
      "how": "Use correct related field: Book.objects.filter(author__name='John') if Author has name field.",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.9,
      "how": "Check model fields and use exact field names: author.name if author is FK.",
      "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.83,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2025-07-24",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}