Solutionunvalidated
I'm getting `AttributeError: model_dump`. — I want to convert the list of `model.Permission` fetched from the database to `schema.Permission`. Tension: Since both are Pydantic models, it should be sufficient to `model_dump` -> `model_validate`, but I'm getting `AttributeError: model_dump`. Outcome: You should use `from_attributes=True` in model config to be able to build your schema from a db model.
d01ccc39-a947-41b3-931c-9f7f6f22143f
I'm getting AttributeError: model_dump. — I want to convert the list of model.Permission fetched from the database to schema.Permission. Tension: Since both are Pydantic models, it should be sufficient to model_dump -> model_validate, but I'm getting AttributeError: model_dump. Outcome: You should use from_attributes=True in model config to be able to build your schema from a db model.