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

Support deserializing natural key objects #173

Closed
wants to merge 2 commits into from
Closed

Support deserializing natural key objects #173

wants to merge 2 commits into from

Conversation

snopoke
Copy link

@snopoke snopoke commented Nov 11, 2016

This is a related issue to #33 in that the change introduced by bf0a412 breaks Django deserialization of natural key objects.

When serializing natural key objects using use_natural_primary_keys=True the primary key field is not included in the serialized data. Re-serializing them results in the JSON data being stored as encoded JSON strings in the DB.

This PR includes a test to illustrate the issue and also a potential solution.

@coveralls
Copy link

coveralls commented Nov 11, 2016

Coverage Status

Coverage decreased (-4.9%) to 58.659% when pulling f3f7553 on snopoke:deserialize_natural_key into 0673fb0 on bradjasper:master.

@snopoke snopoke closed this Jul 4, 2017
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.

2 participants