  class InvalidJSONInput(six.text_type):
      pass
  
  
  class JSONString(six.text_type):
      pass
  
  
  class JSONField(forms.CharField):
      default_error_messages = {
 
</s> remove class InvalidJSONInput(six.text_type):
 </s> add class InvalidJSONInput(str): </s> remove from django.utils import six
 </s> add  </s> remove         if isinstance(value, six.text_type):
            return six.memoryview(b64decode(force_bytes(value)))
 </s> add         if isinstance(value, str):
            return memoryview(b64decode(force_bytes(value))) </s> remove             'form-0-id': six.text_type(poet.id),
 </s> add             'form-0-id': str(poet.id), </s> remove         return six.text_type(self.text)
 </s> add         return self.text
class JSONString(str):
  class InvalidJSONInput(six.text_type):
      pass
  
  
class JSONString(str):
      pass
  
  
  class JSONField(forms.CharField):
      default_error_messages = {
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/contrib/postgres/forms/jsonb.py