docs: def adapt_decimalfield_value(self, value, max_digits, decimal_places):
          """
          Transform a decimal.Decimal value to an object compatible with what is
          expected by the backend driver for decimal (numeric) columns.
          """
          if value is None:
              return None
          if isinstance(value, decimal.Decimal):
              context = decimal.getcontext().copy()
              context.prec = max_digits
              #context.rounding = ROUND_FLOOR
              return "%.*f" % (decimal_places + 1, value.quantize(decimal.Decimal(".1") ** decimal_places, context=context))
          else:
              return "%.*f" % (decimal_places + 1, value)