{
  "id": "python/django-orm-date-filter",
  "signature": "django.core.exceptions.FieldError: Unsupported lookup 'date' for CharField or join on the field not permitted.",
  "signature_zh": "Django字段错误：CharField或连接不支持'date'查找，或不允许连接。",
  "regex": "django\\.core\\.exceptions\\.FieldError:\\ Unsupported\\ lookup\\ 'date'\\ for\\ CharField\\ or\\ join\\ on\\ the\\ field\\ not\\ permitted\\.",
  "domain": "python",
  "category": "data_error",
  "subcategory": null,
  "root_cause": "Using __date lookup on a CharField instead of a DateField.",
  "root_cause_type": "generic",
  "root_cause_zh": "在CharField上使用__date查找，而不是DateField。",
  "versions": [
    {
      "version": "3.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Requires migration and may break existing data.",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Inefficient and error-prone.",
      "fail_rate": 0.5,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.9,
      "how": "Ensure the field is a DateField and use filter(date_field__date=some_date).",
      "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.86,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-05-14",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}