Esempio n. 1
0
 def adapt_decimalfield_value(self, value, max_digits, decimal_places):
     if isinstance(value, decimal.Decimal):
         return decimal_to_string(value, max_digits, decimal_places)
     return value
Esempio n. 2
0
 def value_to_db_decimal(self, value, max_digits, decimal_places):
     if isinstance(value, decimal.Decimal):
         return decimal_to_string(value, max_digits, decimal_places)
     return value
Esempio n. 3
0
 def adapt_decimalfield_value(self, value, max_digits, decimal_places):
     if isinstance(value, decimal.Decimal):
         return decimal_to_string(value, max_digits, decimal_places)
     return value
Esempio n. 4
0
 def value_to_db_decimal(self, value, max_digits, decimal_places):
     if isinstance(value, decimal.Decimal):
         return decimal_to_string(value, max_digits, decimal_places)
     return value