          if response.status == 204:
              response.status = 200
  
          # Build the HTTP Response
          # TODO: Check if renderer.mimetype is underspecified, or if a content-type header has been set
          resp = HttpResponse(content, mimetype=renderer.media_type, status=response.status)
          for (key, val) in response.headers.items():
              resp[key] = val
  
          return resp
 
</s> remove         renderers = [renderer for renderer in resource.renderers if not isinstance(renderer, DocumentingTemplateRenderer)]
 </s> add         renderers = [renderer for renderer in view.renderers if not isinstance(renderer, DocumentingTemplateRenderer)] </s> remove     def _get_content(self, resource, request, obj, media_type):
 </s> add     def _get_content(self, view, request, obj, media_type): </s> remove         form_instance = getattr(resource, 'bound_form_instance', None)
 </s> add         form_instance = getattr(view, 'bound_form_instance', None) </s> remove         return GenericContentForm(resource)
 </s> add         return GenericContentForm(view)
        # TODO: renderer.media_type isn't the right thing to do here...
          if response.status == 204:
              response.status = 200
  
          # Build the HTTP Response
        # TODO: renderer.media_type isn't the right thing to do here...
          resp = HttpResponse(content, mimetype=renderer.media_type, status=response.status)
          for (key, val) in response.headers.items():
              resp[key] = val
  
          return resp
keep keep keep keep replace keep keep keep keep keep
 Rename resource to view in few remaining places in renderers (because that's what it now is) 
djangorestframework/mixins.py