Skip to content

Allow overwriting of get_serializer_class with related urls #859

@uliSchuster

Description

@uliSchuster

In

parent_serializer = self.serializer_class(parent_obj)

the serializer class defined in the view is used directly. This is a problem if one wants to override get_serializer_class(); e.g., to provide a different serializer depending on the view action. Is there a reason to prevent dynamic serializer selection here via get_serializer_class()?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions