                  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]
  
                  self.fields[api_settings.FORM_CONTENTTYPE_OVERRIDE] = forms.ChoiceField(
                      label='Content Type',
                      choices=contenttype_choices,
                      initial=initial_contenttype
                  )
                  self.fields[api_settings.FORM_CONTENT_OVERRIDE] = forms.CharField(
 
</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                     choices=contenttype_choices,
                    initial=initial_contenttype
 </s> add                     choices=choices,
                    initial=initial </s> remove                 self.fields[api_settings.FORM_CONTENT_OVERRIDE] = forms.CharField(
 </s> add                 self.fields[content_field] = forms.CharField( </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)
                self.fields[content_type_field] = forms.ChoiceField(
                  as they are determined by the Resource the form is being created against.
                  Add the fields dynamically."""
                  super(GenericContentForm, self).__init__()
  
                self.fields[content_type_field] = forms.ChoiceField(
                self.fields[content_type_field] = forms.ChoiceField(
                self.fields[content_type_field] = forms.ChoiceField(
                self.fields[content_type_field] = forms.ChoiceField(
                self.fields[content_type_field] = forms.ChoiceField(
                      label='Content Type',
                      choices=contenttype_choices,
                      initial=initial_contenttype
                  )
                  self.fields[api_settings.FORM_CONTENT_OVERRIDE] = forms.CharField(
keep keep keep keep replace replace replace replace replace keep keep keep keep keep
 Make sure JSON output in Browseable API is nicely indented 
rest_framework/renderers.py