code: def apply_widget_options(self, field_name):
          
          widget = self.fields[field_name].widget
  
          if isinstance(widget, forms.DateInput):
              widget.input_type = 'date'
  
          if isinstance(widget, forms.TimeInput):
              widget.input_type = 'time'
  
          if isinstance(widget, forms.SplitDateTimeWidget):
              widget.widgets[0].input_type = 'date'
              widget.widgets[1].input_type = 'time'
docs: Applies additional widget options like changing the input type of DateInput
          and TimeInput to "date" / "time" to enable Browser date pickers or other
          attributes/properties.