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

Add support for DRF (Django Rest Framework) #60

Open
codingjoe opened this issue Mar 23, 2018 · 0 comments
Open

Add support for DRF (Django Rest Framework) #60

codingjoe opened this issue Mar 23, 2018 · 0 comments
Assignees

Comments

@codingjoe
Copy link
Contributor

DRF's ModelSerializer has a fixed mapping for Django model fields. Our custom fields are of course not in there which means they are not identified which can lead to strange and unexpected behavior.
https://github.com/encode/django-rest-framework/blob/5e6abfbafebd7eed8ece110b8c32949f88e94e9d/rest_framework/serializers.py#L838-L863

I would suggest to add contrib.rest_framework that provides a subclass of the ModelSerializer that adds support all the Salesforce fields.

@codingjoe codingjoe self-assigned this Mar 23, 2018
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

1 participant