              return None
  
          # NB. http://jacobian.org/writing/dynamic-form-generation/
          class GenericContentForm(forms.Form):
              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."""
                  super(GenericContentForm, self).__init__()
  
                  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]
 
</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         Returns a form that allows for arbitrary content types to be tunneled via standard HTML forms
 </s> add         Returns a form that allows for arbitrary content types to be tunneled
        via standard HTML forms. </s> remove             return self.get_generic_content_form(view)
 </s> add             media_types = [parser.media_type for parser in view.parser_classes]
            return self.get_generic_content_form(media_types) </s> remove         # If the media type looks like 'application/json; indent=4', then
        # pretty print the result.
        indent = get_media_type_params(accepted_media_type).get('indent', None)
        sort_keys = False
        try:
            indent = max(min(int(indent), 8), 0)
            sort_keys = True
        except (ValueError, TypeError):
            indent = None
 </s> add         # If 'indent' is provided in the context, then pretty print the result.
        # E.g. If we're being called by the BrowseableAPIRenderer.
        renderer_context = renderer_context or {}
        indent = renderer_context.get('indent', None)
        sort_keys = indent and True or False

        if accepted_media_type:
            # If the media type looks like 'application/json; indent=4',
            # then pretty print the result.
            params = get_media_type_params(accepted_media_type)
            indent = params.get('indent', indent)
            try:
                indent = max(min(int(indent), 8), 0)
                sort_keys = True
            except (ValueError, TypeError):
                indent = None
            def __init__(self):
              return None
  
          # NB. http://jacobian.org/writing/dynamic-form-generation/
          class GenericContentForm(forms.Form):
            def __init__(self):
            def __init__(self):
            def __init__(self):
            def __init__(self):
                  super(GenericContentForm, self).__init__()
  
                  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]
keep keep keep keep replace replace replace replace keep keep keep keep keep
 Make sure JSON output in Browseable API is nicely indented 
rest_framework/renderers.py