Replies: 3 comments 3 replies
-
|
Hey, in which method do you exactly need to access the request object? |
Beta Was this translation helpful? Give feedback.
-
|
I don't have an example, but how about copying the request object, either in the route or in middleware, to a contextvar? Then it can be accessed from any function at the class level. |
Beta Was this translation helpful? Give feedback.
-
|
I also ran into this problem. (I used a translator, I apologize if it's unclear.) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I have a class that inherits from the ModelView class and uses a custom wtform with a SelectMultipleField.
This SelectMultipleField is a relation to another Model, however I need to filter out the choices that are shown in this model based on an attribute I have set in the request.session. How can I achieve this?
Beta Was this translation helpful? Give feedback.
All reactions