  by serializing the output along with documentation regarding the View, output status and headers,
  and providing forms and links depending on the allowed methods, renderers and parsers on the View.
  """
  import string
  from django import forms
  from django.template import RequestContext, loader
  from django.utils import simplejson as json
  from rest_framework.compat import yaml
 
</s> remove from rest_framework import status
 </s> add from rest_framework import status, permissions </s> remove         if not getattr(view.request, '_USE_FORM_OVERLOADING', False):
 </s> add         if not (api_settings.FORM_CONTENT_OVERRIDE
                and api_settings.FORM_CONTENTTYPE_OVERRIDE): </s> remove         if object and not self.view.request.method == 'DELETE':  # Don't fill in the form when the object is deleted
 </s> add         if object and not view.request.method == 'DELETE':  # Don't fill in the form when the object is deleted </s> remove     def _get_form_instance(self, view, method):
 </s> add     def get_form(self, view, method, request):
import copy
  by serializing the output along with documentation regarding the View, output status and headers,
  and providing forms and links depending on the allowed methods, renderers and parsers on the View.
  """
import copy
  import string
  from django import forms
  from django.template import RequestContext, loader
  from django.utils import simplejson as json
  from rest_framework.compat import yaml
keep keep add keep keep keep keep keep
 Only display forms when user has permissions.  #159 
rest_framework/renderers.py