          if not (api_settings.FORM_CONTENT_OVERRIDE
                  and api_settings.FORM_CONTENTTYPE_OVERRIDE):
              return None
  
          # NB. http://jacobian.org/writing/dynamic-form-generation/
          class GenericContentForm(forms.Form):
              def __init__(self):
                  super(GenericContentForm, self).__init__()
  
                  self.fields[content_type_field] = forms.ChoiceField(
 
</s> remove             def __init__(self, view, request):
                """We don't know the names of the fields we want to set until the point the form is instantiated,
                as they are determined by the Resource the form is being created against.
                Add the fields dynamically."""
 </s> add             def __init__(self): </s> remove                 parsed_media_types = [parser.media_type for parser in view.parser_classes]
                contenttype_choices = [(media_type, media_type) for media_type in parsed_media_types]
                initial_contenttype = parsed_media_types[0]

                self.fields[api_settings.FORM_CONTENTTYPE_OVERRIDE] = forms.ChoiceField(
 </s> add                 self.fields[content_type_field] = forms.ChoiceField( </s> remove         # If either of these reserved parameters are turned off then content tunneling is not possible
        if self.view.request._CONTENTTYPE_PARAM is None or self.view.request._CONTENT_PARAM is None:
            return None

        # Okey doke, let's do it
        return GenericContentForm(view, view.request)
 </s> add         return GenericContentForm() </s> remove     def __init__(self, view=None):
        self.view = view

    def render(self, data=None, accepted_media_type=None):
 </s> add     def render(self, data, accepted_media_type=None, renderer_context=None):
        content_type_field = api_settings.FORM_CONTENTTYPE_OVERRIDE
        content_field = api_settings.FORM_CONTENT_OVERRIDE
        choices = [(media_type, media_type) for media_type in media_types]
        initial = media_types[0]

          if not (api_settings.FORM_CONTENT_OVERRIDE
                  and api_settings.FORM_CONTENTTYPE_OVERRIDE):
              return None
  
        content_type_field = api_settings.FORM_CONTENTTYPE_OVERRIDE
        content_field = api_settings.FORM_CONTENT_OVERRIDE
        choices = [(media_type, media_type) for media_type in media_types]
        initial = media_types[0]

          # NB. http://jacobian.org/writing/dynamic-form-generation/
          class GenericContentForm(forms.Form):
              def __init__(self):
                  super(GenericContentForm, self).__init__()
  
                  self.fields[content_type_field] = forms.ChoiceField(
keep keep keep add keep keep keep keep keep keep
 Make sure JSON output in Browseable API is nicely indented 
rest_framework/renderers.py