# TypeError: 'QuerySet' object is not subscriptable

- **ID:** `python/django-query-set-slicing`
- **Domain:** python
- **Category:** type_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

Attempting to slice a QuerySet that has already been evaluated or using wrong syntax.

## Version Compatibility

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

## Workarounds

1. **** (90% success)
   ```
   Use queryset[:5] for slicing or queryset.first() for first object.
   ```

## Dead Ends

- **** — Loads all data into memory, defeating lazy evaluation. (40% fail)
- **** — Raises IndexError if empty. (50% fail)
