Set custom manager in serializer #9044
Unanswered
momen7899
asked this question in
Question & Answer
Replies: 1 comment
-
@momen7899 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Let me explain the problem I faced myself.
I have 2 managers in my model and I use this model in 2 APIs. Now I want to use one of these managers in each of the APIs.
Because I use my model as nested, I cannot specify which one of the managers to use in the view, and I need to do this in my nested serializer.
How can I do it?
Beta Was this translation helpful? Give feedback.
All reactions