# django.core.exceptions.FieldError: Related model 'Author' cannot be resolved

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

## Root Cause

The related_name in ForeignKey conflicts with an existing field or is invalid.

## Version Compatibility

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

## Workarounds

1. **** (95% success)
   ```
   Set a unique related_name: author = models.ForeignKey(Author, related_name='books')
   ```
2. **** (85% success)
   ```
   Use related_query_name to avoid conflict: related_query_name='author'
   ```

## Dead Ends

- **** — Removing related_name doesn't fix if the default related name conflicts. (50% fail)
- **** — Changing the model name in settings doesn't resolve the relationship. (30% fail)
