# django.core.exceptions.FieldError: Cannot resolve keyword 'name' into field. Choices are: id, created_at

- **ID:** `python/django-queryset-order-by-error`
- **Domain:** python
- **Category:** data_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

Using order_by() with a field that does not exist on the model.

## Version Compatibility

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

## Workarounds

1. **** (95% success)
   ```
   Check model fields and use correct field: MyModel.objects.order_by('created_at')
   ```
2. **** (90% success)
   ```
   Use related field with double underscore: order_by('related__field')
   ```

## Dead Ends

- **** — May not provide desired ordering. (70% fail)
- **** — Hides error, may break functionality. (80% fail)
