<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def format_value(self, value):
 """ Return a value as it should appear when rendered in a template. Missing method of django.forms.widgets.Widget class """

        if value == '' or value is None:
            return None
        return formats.localize_input(value, self.format)