-
Notifications
You must be signed in to change notification settings - Fork 301
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
Incorrect serializer used when querying relationship #475
Comments
Yes, this issue was known to me, but it seemed a bit tricky to fix correctly. The issue is essentially wherever |
I've forked and pushed a test for this on a branch in this commit: kopf@7d3cdfe I'm having a go at tackling the problem, but am running into problems understanding the distinction between A solution I was thinking of was to store a look-up table somewhere, essentially a dict in the form |
@kopf wrote:
There are two kinds of things being serialized, one is resource objects (like when fetching
That's essentially what we do when using |
This should be fixed by pull request #493. |
Hi,
on 1.0.0-dev (
826c9d49c3d4a95f04c4ababd2b89f2045e59eee
), when querying a model that has a relationship, e.g.http://localhost:8888/api/v1/users/1/posts
, and theusers
API has a specific serializer specified in itscreate_api
call, this serializer will be used, even though we're requesting posts from the API, not users.Apart from this, and one other issue, 1.0.0 looks very exciting indeed! Thanks for your hard work!
The text was updated successfully, but these errors were encountered: