  
          obj = getattr(view, 'object', None)
          if getattr(view, 'get_serializer', None):
              serializer = view.get_serializer(instance=obj)
          else:
              serializer = None
  
          parsers = []
          for parser_class in view.parser_classes:
 
</s> remove         if not getattr(view, 'get_serializer', None) or not any(parser.supports_html_forms for parser in view.parser_classes):
 </s> add         if not getattr(view, 'get_serializer', None) or not any(is_form_media_type(parser.media_type) for parser in view.parser_classes): </s> remove             if obj is None and field.read_only:
                continue
 </s> add  </s> remove             #'sub_comment': ''
 </s> add             'sub_comment': '' </s> remove     supports_html_forms = False

 </s> add 
            for field_name, field in serializer.fields.items():
                if field.read_only:
                    del serializer.fields[field_name]
  
          obj = getattr(view, 'object', None)
          if getattr(view, 'get_serializer', None):
              serializer = view.get_serializer(instance=obj)
            for field_name, field in serializer.fields.items():
                if field.read_only:
                    del serializer.fields[field_name]
          else:
              serializer = None
  
          parsers = []
          for parser_class in view.parser_classes:
keep keep keep add keep keep keep keep keep
 Simplifying raw data renderering support 
rest_framework/renderers.py