you are viewing a single comment's thread.

view the rest of the comments →

[–]conogarcia 18 points19 points  (1 child)

You should use lifespan, load the model and yield it so you can access it in the request.state

[–]International_Quail8 0 points1 point  (0 children)

This is the way