Skip to content

Set custom manager in serializer #9042

@momen7899

Description

@momen7899

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions