code: def format_value(self, value):
          
          if value == '' or value is None:
              return None
          return formats.localize_input(value, self.format)
docs: Return a value as it should appear when rendered in a template.
  
          Missing method of django.forms.widgets.Widget class