Skip to content

Support StringRelatedField() #1236

Open
@Jer-Pha

Description

@Jer-Pha

Description of feature request

StringRelatedField is not currently supported by DJA. The current workaround is overwriting get_resource_id in a custom ResourceRelatedField.

Checklist

  • Raised initially as discussion StringRelatedField() not working #1234
    This cannot be dealt with as a third party library. (We prefer new functionality to be in the form of third party libraries where feasible.)
    I have reduced the issue to the simplest possible case.

Activity

bashlyss

bashlyss commented on Apr 22, 2025

@bashlyss
Contributor

I noticed SlugRelatedField is also unsupported with (I assume) the same/an analogous workaround

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @bashlyss@Jer-Pha

        Issue actions

          Support StringRelatedField() · Issue #1236 · django-json-api/django-rest-framework-json-api