Skip to content

Support StringRelatedField() #1236

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
3 tasks done
Jer-Pha opened this issue Jun 18, 2024 · 1 comment
Open
3 tasks done

Support StringRelatedField() #1236

Jer-Pha opened this issue Jun 18, 2024 · 1 comment

Comments

@Jer-Pha
Copy link

Jer-Pha commented Jun 18, 2024

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.
@bashlyss
Copy link
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
Projects
None yet
Development

No branches or pull requests

2 participants