              'description': description,
              'name': name,
              'version': VERSION,
              'breadcrumblist': breadcrumb_list,
              'allowed_methods': self.view.allowed_methods,
              'available_formats': [renderer.format for renderer in self.view.renderer_classes],
              'put_form': put_form_instance,
              'post_form': post_form_instance,
              'api_settings': api_settings
          })
  
          ret = template.render(context)
  
 
</s> remove         # form = self.get_bound_form()
        # if form is not None:
 </s> add         # serializer = self.get_serializer()
        # if serializer is not None: </s> remove         if hasattr(self.view, 'object'):
            object = self.view.object
        serializer = self.view.get_serializer(instance=object)
 </s> add         if getattr(view, 'object', None):
            object = view.object
        serializer = view.get_serializer(instance=object) </s> remove                 self.fields[request._CONTENTTYPE_PARAM] = forms.ChoiceField(label='Content Type',
                                                                         choices=contenttype_choices,
                                                                         initial=initial_contenttype)
                self.fields[request._CONTENT_PARAM] = forms.CharField(label='Content',
                                                                   widget=forms.Textarea)
 </s> add                 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(
                    label='Content',
                    widget=forms.Textarea
                ) </s> remove         put_form_instance = self._get_form_instance(self.view, 'put')
        post_form_instance = self._get_form_instance(self.view, 'post')
 </s> add         put_form = self.get_form(view, 'PUT', request)
        post_form = self.get_form(view, 'POST', request)
        delete_form = self.get_form(view, 'DELETE', request)
        options_form = self.get_form(view, 'OPTIONS', request) </s> remove         content = self._get_content(view, request, obj, media_type)
 </s> add         content = self.get_content(view, request, obj, media_type)
            'allowed_methods': view.allowed_methods,
            'available_formats': [renderer.format for renderer in view.renderer_classes],
            'put_form': put_form,
            'post_form': post_form,
            'delete_form': delete_form,
            'options_form': options_form,
              'description': description,
              'name': name,
              'version': VERSION,
              'breadcrumblist': breadcrumb_list,
            'allowed_methods': view.allowed_methods,
            'available_formats': [renderer.format for renderer in view.renderer_classes],
            'put_form': put_form,
            'post_form': post_form,
            'delete_form': delete_form,
            'options_form': options_form,
            'allowed_methods': view.allowed_methods,
            'available_formats': [renderer.format for renderer in view.renderer_classes],
            'put_form': put_form,
            'post_form': post_form,
            'delete_form': delete_form,
            'options_form': options_form,
            'allowed_methods': view.allowed_methods,
            'available_formats': [renderer.format for renderer in view.renderer_classes],
            'put_form': put_form,
            'post_form': post_form,
            'delete_form': delete_form,
            'options_form': options_form,
            'allowed_methods': view.allowed_methods,
            'available_formats': [renderer.format for renderer in view.renderer_classes],
            'put_form': put_form,
            'post_form': post_form,
            'delete_form': delete_form,
            'options_form': options_form,
              'api_settings': api_settings
          })
  
          ret = template.render(context)
  
keep keep keep keep replace replace replace replace keep keep keep keep keep
 Only display forms when user has permissions.  #159 
rest_framework/renderers.py