How do I use schema from outside of respective tenant? #90
-
I'm in a use case where I'm looking for django-tenant's schema_context decorator to execute code from outside of schema. I couldn't find anything by myself. Can anyone give me a clue for how to do that? Thanks! |
Beta Was this translation helpful? Give feedback.
Answered by
lorinkoz
Jun 21, 2021
Replies: 2 comments
-
I actually found a way to do it referencing the middleware:
Now I can run code as being inside the tenant. |
Beta Was this translation helpful? Give feedback.
0 replies
-
That's right. Any of these should work:
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
lorinkoz
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
That's right. Any of these should work: