          self.site = Site.objects.get(pk=settings.SITE_ID)
  
      def test_model(self):
          r1 = Redirect.objects.create(site=self.site, old_path='/initial', new_path='/new_target')
          self.assertEqual(six.text_type(r1), "/initial ---> /new_target")
  
      def test_redirect(self):
          Redirect.objects.create(site=self.site, old_path='/initial', new_path='/new_target')
          response = self.client.get('/initial')
          self.assertRedirects(response, '/new_target', status_code=301, target_status_code=404)
 
</s> remove         conn.encoders[SafeText] = conn.encoders[six.text_type]
 </s> add         conn.encoders[SafeText] = conn.encoders[str] </s> remove         lazy_obj = lazy(lambda: original_object, six.text_type)
 </s> add         lazy_obj = lazy(lambda: original_object, str) </s> remove         return six.text_type(self.name)
 </s> add         return self.name </s> remove         self.assertIn('myfile-clear', six.text_type(form))
 </s> add         self.assertIn('myfile-clear', str(form)) </s> remove         if isinstance(element, six.string_types):
            element = force_text(element)
 </s> add         if isinstance(element, str):
        self.assertEqual(str(r1), "/initial ---> /new_target")
          self.site = Site.objects.get(pk=settings.SITE_ID)
  
      def test_model(self):
          r1 = Redirect.objects.create(site=self.site, old_path='/initial', new_path='/new_target')
        self.assertEqual(str(r1), "/initial ---> /new_target")
  
      def test_redirect(self):
          Redirect.objects.create(site=self.site, old_path='/initial', new_path='/new_target')
          response = self.client.get('/initial')
          self.assertRedirects(response, '/new_target', status_code=301, target_status_code=404)
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. 
tests/redirects_tests/tests.py