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

fixed False or empty string values #67

Merged
merged 1 commit into from
Jul 20, 2015

Conversation

pglotov
Copy link
Contributor

@pglotov pglotov commented Jul 19, 2015

If one of instance fields has a value of False or '' (empty string) the serializer would translate those values to None which would in turn become null in json. This PR preserves correct field values.

nemesifier added a commit that referenced this pull request Jul 20, 2015
Distinguish False or empty string values from None
@nemesifier nemesifier merged commit 054bfdc into openwisp:master Jul 20, 2015
@pglotov pglotov deleted the fix/False-field-values branch July 24, 2015 00:09
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