Skip to content

Commit

Permalink
Fixed a bug in Decimal field which did not load the exact decimal val…
Browse files Browse the repository at this point in the history
…ue from settings.cfg but the rounded value
  • Loading branch information
owais committed Nov 21, 2011
1 parent 8ca768e commit 0ad59c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setman/utils.py
Expand Up @@ -327,7 +327,7 @@ def __init__(self, **kwargs):
def to_python(self, value):
if value is None:
return value
return Decimal(value)
return Decimal(str(value))


class IntSetting(Setting):
Expand Down

0 comments on commit 0ad59c8

Please sign in to comment.