-
Notifications
You must be signed in to change notification settings - Fork 301
Allow partial update with polymorphic serializers #655
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
Allow partial update with polymorphic serializers #655
Conversation
Thanks for your PR. Could you add a test to ensure that this fix works and a changelog entry? Thanks. |
Codecov Report
@@ Coverage Diff @@
## master #655 +/- ##
=======================================
Coverage 96.13% 96.13%
=======================================
Files 56 56
Lines 2869 2869
=======================================
Hits 2758 2758
Misses 111 111 Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #655 +/- ##
==========================================
+ Coverage 96.13% 96.14% +0.01%
==========================================
Files 56 57 +1
Lines 2869 2879 +10
==========================================
+ Hits 2758 2768 +10
Misses 111 111
Continue to review full report at Codecov.
|
6b51632
to
f0211f5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. LGTM.
Description of the Change
Passes the partial argument to the subclass of a polymorphic serializer when
to_internal_value
is called. This prevents a validation error being raised if you don't provide all fields when making a PATCH request to the resource.Checklist
CHANGELOG.md
updated (only for user relevant changes)AUTHORS