code: def render_field(self, obj, field_name, **options):
          
          try:
              field = obj._meta.get_field(field_name)
          except FieldDoesNotExist:
              return getattr(obj, field_name, '')
  
          if hasattr(field, 'choices') and getattr(field, 'choices'):
              return getattr(obj, 'get_{}_display'.format(field_name))()
  
          value = getattr(obj, field_name, '')
          renderer = self.renderers.get(type(field))
  
          if renderer:
              return renderer(value, **options)
  
          if isinstance(value, models.BaseModel):
              value = str(value)
  
          return self.render_value(value, **options)
docs: Render field