call the function formats.localize_input with 2 arguments: value and self.format if true, if not,
return formats . localize_input ( value , self . format or formats . get_format ( self . format_key ) [ 0 ] )