# django.core.exceptions.FieldError: Related Field got invalid lookup: icontains

- **ID:** `python/django-orm-related-field-error`
- **Domain:** python
- **Category:** data_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

在关联字段上使用了不支持的查找类型

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 3.x | active | — | — |

## Workarounds

1. **** (95% success)
   ```
   Article.objects.filter(author__name__icontains='john')
   ```
2. **** (90% success)
   ```
   author = Author.objects.get(name__icontains='john'); articles = author.article_set.all()
   ```

## Dead Ends

- **** — 可能无法实现模糊搜索需求 (60% fail)
- **** — 查询不会返回结果 (90% fail)
