              data = serializer.data
          form_instance = OnTheFlyForm(data)
          return form_instance
  
      def _get_generic_content_form(self, view):
          """
          Returns a form that allows for arbitrary content types to be tunneled via standard HTML forms
          (Which are typically application/x-www-form-urlencoded)
          """
  
 
</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): </s> remove         if not hasattr(self.view, 'get_serializer'):  # No serializer, no form.
            return
 </s> add         if not method in view.allowed_methods:
            return  # Not a valid method

        if not api_settings.FORM_METHOD_OVERRIDE:
            return  # Cannot use form overloading

        temp = request._method
        request._method = method.upper()
        if not view.has_permission(request):
            request._method = temp
            return  # Don't have permission
        request._method = temp

        if method == 'DELETE' or method == 'OPTIONS':
            return True  # Don't actually need to return a form

        if not getattr(view, 'get_serializer', None):
            return self.get_generic_content_form(view)
 </s> remove         self.check_permissions(request)
 </s> add         if not self.has_permission(request):
            self.permission_denied(request) </s> remove         self.check_permissions(self.request, obj)
 </s> add         if not self.has_permission(self.request, obj):
            self.permission_denied(self.request)
    def get_generic_content_form(self, view):
              data = serializer.data
          form_instance = OnTheFlyForm(data)
          return form_instance
  
    def get_generic_content_form(self, view):
          """
          Returns a form that allows for arbitrary content types to be tunneled via standard HTML forms
          (Which are typically application/x-www-form-urlencoded)
          """
  
keep keep keep keep replace keep keep keep keep keep
 Only display forms when user has permissions.  #159 
rest_framework/renderers.py