Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/a431278519093168_f_decimal'
Browse files Browse the repository at this point in the history
  • Loading branch information
vmaksymiv committed Oct 4, 2017
2 parents c9d0e59 + 14ddb03 commit 2072b3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/openprocurement/api/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@
class DecimalType(BaseDecimalType):

def __init__(self, precision=-3, min_value=None, max_value=None, **kwargs):
super(DecimalType, self).__init__(**kwargs)
self.min_value, self.max_value = min_value, max_value
self.precision = Decimal("1E{:d}".format(precision))
super(DecimalType, self).__init__(**kwargs)

def to_primitive(self, value, context=None):
return value
Expand Down

0 comments on commit 2072b3e

Please sign in to comment.