Skip to content
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

Django model serializer 'only_fields' not included in the payload #10

Open
jwright0991 opened this issue May 23, 2019 · 0 comments
Open

Comments

@jwright0991
Copy link

I was having issues trying to get the fields that it included in the the data attribute of the subscription to populate in the payload. Curiously, I was able to get the id to show up, but I couldn't get any of the other attributes of my model to populate in the payload. After inspecting the source code and removing the modifications to the field values (stripping '' and changing to uppercase) in line 78 of subscription.py I was able to fix the problem and get the fields that I wanted in the payload. I'm assuming that there was a reason for including the change to upper and removing the '', but I just wanted to inform you that it was causing a bug for me. I really appreciate the work you have done and hope you can create a fix for this issue in the future!

@jwright0991 jwright0991 changed the title Django model serializer 'only_fields' not included in the the payload Django model serializer 'only_fields' not included in the payload May 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant