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

Fixes #458, DecimalField now ignores incorrect values until validate is called just like FloatField #462

Merged
merged 1 commit into from
Sep 27, 2013

Conversation

bool-dev
Copy link
Contributor

@bool-dev bool-dev commented Sep 6, 2013

As pointed out in issue #458, while creating a document with kwargs, incorrect values for FloatFields are ignored until doc.validate() is called, but the same was not the case with DecimalFields, where a decimal.InvalidOperation exception is raised immediately.
This commit fixes that and brings the 2 fields closer. Although I'm not sure if this is the desired direction of MongoEngine.

…l validate is called,

just like FloatField.
rozza added a commit that referenced this pull request Sep 27, 2013
Fixes #458, DecimalField now ignores incorrect values until validate is called just like FloatField
@rozza rozza merged commit 1145c72 into MongoEngine:master Sep 27, 2013
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