Skip to content

ResourceRelatedField is too rigid for type validation #124

Closed
@jsenecal

Description

@jsenecal

Opening this on behalf of @martinmaillard (#122 (comment))

ResourceRelatedField is way too rigid when it checks the valid type. It gets the expected type from the queryset, which means that:

  • it's not possible to customize the type of a relation (what is allowed by the resource_name on the serializer)
  • it's not possible to allow multiple types to be valid for one relation (useful with polymorphic relationships)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions