Пример #1
0
 def parse_set(self, value, from_db):
     # XXX: We cannot reduce the precision when converting to currency, since
     # sometimes we need a cost of a product to have more than 2 digits
     return currency(DecimalVariable.parse_set(value, from_db))
Пример #2
0
 def parse_set(self, value, from_db):
     # XXX: We cannot reduce the precision when converting to currency, since
     # sometimes we need a cost of a product to have more than 2 digits
     return currency(DecimalVariable.parse_set(value, from_db))