          by the backend driver for datetime columns.
          """
          if value is None:
              return None
          return six.text_type(value)
  
      def adapt_timefield_value(self, value):
          """
          Transforms a time value to an object compatible with what is expected
          by the backend driver for time columns.
 
</s> remove         return six.text_type(value)
 </s> add         return str(value) </s> remove         return six.text_type(value)
 </s> add         return str(value) </s> remove         return six.text_type(value)
 </s> add         return str(value) </s> remove         if isinstance(dr_input, six.string_types):
 </s> add         if isinstance(dr_input, str): </s> remove         elif f.geom_type == 'RASTER' and isinstance(value, six.string_types):
 </s> add         elif f.geom_type == 'RASTER' and isinstance(value, str):
        return str(value)
          by the backend driver for datetime columns.
          """
          if value is None:
              return None
        return str(value)
  
      def adapt_timefield_value(self, value):
          """
          Transforms a time value to an object compatible with what is expected
          by the backend driver for time columns.
keep keep keep keep replace keep keep keep keep keep
 Refs #23919 -- Removed six.<various>_types usage

Thanks Tim Graham and Simon Charette for the reviews. 
django/db/backends/base/operations.py