Skip to content

Fixed decimal snan deserialization #7002

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

Merged
merged 2 commits into from
Oct 22, 2019

Conversation

bizywizy
Copy link
Contributor

Description

Added test case to reproduce the bug described here #7001 ('sNaN' string raises InvalidOperation exception instead of validation error ) and fixed the bug.

refs #7001

@rpkilby rpkilby added this to the 3.11 Release milestone Oct 21, 2019
@tomchristie
Copy link
Member

Nice little change, this.
Thanks!

@tomchristie tomchristie merged commit 43397a8 into encode:master Oct 22, 2019
pchiquet pushed a commit to pchiquet/django-rest-framework that referenced this pull request Nov 17, 2020
* Added test case causes exception in DecimalField deserialization

* Fixed NaN checking which throws exception with sNaN value
sigvef pushed a commit to sigvef/django-rest-framework that referenced this pull request Dec 3, 2022
* Added test case causes exception in DecimalField deserialization

* Fixed NaN checking which throws exception with sNaN value
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