  
      if isinstance(model_field, models.SlugField):
          kwargs['allow_unicode'] = model_field.allow_unicode
  
      if isinstance(model_field, models.TextField) or (postgres_fields and isinstance(model_field, postgres_fields.JSONField)):
          kwargs['style'] = {'base_template': 'textarea.html'}
  
      if isinstance(model_field, models.AutoField) or not model_field.editable:
          # If this field is read-only, then return early.
          # Further keyword arguments are not valid.
 
</s>
    if isinstance(model_field, models.TextField) and not model_field.choices or \
            (postgres_fields and isinstance(model_field, postgres_fields.JSONField)):
  
      if isinstance(model_field, models.SlugField):
          kwargs['allow_unicode'] = model_field.allow_unicode
  
    if isinstance(model_field, models.TextField) and not model_field.choices or \
            (postgres_fields and isinstance(model_field, postgres_fields.JSONField)):
          kwargs['style'] = {'base_template': 'textarea.html'}
  
      if isinstance(model_field, models.AutoField) or not model_field.editable:
          # If this field is read-only, then return early.
          # Further keyword arguments are not valid.
keep keep keep keep replace keep keep keep keep keep
 Changed default widget for TextField with choices to select (#6892)
rest_framework/utils/field_mapping.py