# PydanticUserError: `orm_mode` is removed. Use `from_attributes=True` instead.

- **ID:** `python/fastapi-pydantic-config-orm-mode`
- **Domain:** python
- **Category:** config_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

A Pydantic model still uses v1's `orm_mode = True` Config under v2.

## Version Compatibility

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

## Workarounds

1. **** (93% success)
   ```
   Use v2 config:
class UserOut(BaseModel):
    model_config = ConfigDict(from_attributes=True)
   ```
2. **** (85% success)
   ```
   Validate manually with model_validate(obj, from_attributes=True).
   ```

## Dead Ends

- **** — orm_mode is rejected outright, so the model fails to import. (90% fail)
- **** — Then ORM objects can't be validated from attributes, breaking response_model. (70% fail)
