-
Notifications
You must be signed in to change notification settings - Fork 678
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
Use data instead of validated data #120
base: master
Are you sure you want to change the base?
Conversation
Looks like the test suite is failing. Can you figure out why that's happening? |
Because `validated_data` is used instead of `data` you can't use your own serializer which uses a custom `to_representation` method. I was banging my head against this for a while.
@davesque I checked it out and it was because the data changes in the |
Great, thanks for checking that out. I'll try and find some time today to do a bit of diligence on my end then merge this. |
Perfect :)
|
@davesque Just a reminder for this PR. |
@davesque @jonathan-s any progress on this? |
It's in davesque's hand. |
Sorry this has sat so long without any attention. I was a bit concerned that the little change might have unexpected consequences. So I meant to take a closer look but haven't really had any time to do that. Can you explain a bit more about why using |
@davesque If you look at how things are expected from the rest_framework it's using I can't exactly remember what the errors were since it was such a long time ago now. @rohanahata perhaps you can fill me in since it seems like you're facing this issue right now? |
Because
validated_data
is used instead ofdata
you can't use your own serializer which uses a customto_representation
method. I was banging my head against this for a while.