Merge branch 'master' of git://github.com/mrTable/mongoengine

This commit is contained in:
Omer Katz
2016-12-11 10:52:08 +02:00
4 changed files with 31 additions and 12 deletions

View File

@@ -341,7 +341,7 @@ class DecimalField(BaseField):
if value is None:
return value
if self.force_string:
return unicode(value)
return unicode(self.to_python(value))
return float(self.to_python(value))
def validate(self, value):