def value_to_db_decimal(self, value, max_digits, decimal_places):
        if value is None:
            return None
        return util.format_number(value, max_digits, decimal_places)
Transform a decimal.Decimal value to an object compatible with what is
dataset/ETHPy150Open dcramer/django-compositepks/django/db/backends/__init__.py/BaseDatabaseOperations.value_to_db_decimal