# django.core.exceptions.FieldDoesNotExist: Book has no field named 'published_year'

- **ID:** `python/django-query-param-missing`
- **Domain:** python
- **Category:** data_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

Attempting to filter or order by a field that doesn't exist on the model.

## Version Compatibility

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

## Workarounds

1. **** (90% success)
   ```
   Add the field to model: published_year = models.IntegerField() and run migrations.
   ```
2. **** (95% success)
   ```
   Use correct existing field: published_date__year for filtering by year.
   ```

## Dead Ends

- **** — Adding a property named published_year to model doesn't make it queryable. (70% fail)
- **** — Using annotate with wrong name still raises FieldDoesNotExist. (50% fail)
