Skip to content

Conversation

amw
Copy link
Contributor

@amw amw commented Sep 18, 2016

Currently the parser always sets request.data['id'] even for POST requests that often don't include it. This doesn't play well with some serializer options like default. If id is part of serializer.initial_data then it will not be replaced by the field's default value even if it is None.

@codecov-io
Copy link

Current coverage is 90.50% (diff: 100%)

Merging #280 into develop will not change coverage

@@            develop       #280   diff @@
==========================================
  Files            47         47          
  Lines          2255       2255          
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
  Hits           2041       2041          
  Misses          214        214          
  Partials          0          0          

Powered by Codecov. Last update e96230c...6d429e0

@jerel jerel merged commit 43fd5ee into django-json-api:develop Sep 26, 2016
@amw amw deleted the dont-force-empty-id branch May 7, 2017 15:12
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

Successfully merging this pull request may close these issues.

3 participants