#NEWLINE# def value_to_db_decimal( self , value , max_digits , decimal_places ) : #NEWLINE# #INDENT# '\n        Transform a decimal.Decimal value to an object compatible with what is\n        expected by the backend driver for decimal (numeric) columns.\n        ' #NEWLINE# if ( value is None ) : #NEWLINE# #INDENT# return None #NEWLINE# #UNINDENT# return util . format_number ( value , max_digits , self )