def format_value(self, value): if self.is_localized: return formats.localize_input(value) return value