          if 'template_pack' not in style:
              style['template_pack'] = parent_style.get('template_pack', self.template_pack)
          style['renderer'] = self
  
          if style.get('input_type') == 'datetime-local' and isinstance(field.value, six.text_type):
              field.value = field.value.rstrip('Z')
  
          if 'template' in style:
 
</s> remove from rest_framework.compat import OrderedDict, unicode_to_repr
 </s> add from rest_framework.compat import OrderedDict, force_text, unicode_to_repr
        # Get a clone of the field with text-only value representation.
        field = field.as_form_field()

          if 'template_pack' not in style:
              style['template_pack'] = parent_style.get('template_pack', self.template_pack)
          style['renderer'] = self
  
        # Get a clone of the field with text-only value representation.
        field = field.as_form_field()

          if style.get('input_type') == 'datetime-local' and isinstance(field.value, six.text_type):
              field.value = field.value.rstrip('Z')
  
          if 'template' in style:
keep keep keep add keep keep keep keep
 Form fields should use textual only value representations. Closes #3139. Closes #2416. Closes #2558. 
rest_framework/renderers.py