              return '[%d bytes of binary content]'
  
          return content
  
      def show_form_for_method(self, view, method, request):
          """
          Returns True if a form should be shown for this method.
          """
          if not method in view.allowed_methods:
              return  # Not a valid method
 
</s> remove         if not self.show_form_for_method(view, method, request):
 </s> add         obj = getattr(view, 'object', None)
        if not self.show_form_for_method(view, method, request, obj): </s> remove         # Creating an on the fly form see: http://stackoverflow.com/questions/3915024/dynamically-creating-classes-python
        obj, data = None, None
        if getattr(view, 'object', None):
            obj = view.object

 </s> add  </s> remove             if not view.has_permission(request):
 </s> add             if not view.has_permission(request, obj): </s> remove         if obj:
            data = serializer.data
 </s> add         data = (obj is not None) and serializer.data or None
    def show_form_for_method(self, view, method, request, obj):
              return '[%d bytes of binary content]'
  
          return content
  
    def show_form_for_method(self, view, method, request, obj):
          """
          Returns True if a form should be shown for this method.
          """
          if not method in view.allowed_methods:
              return  # Not a valid method
keep keep keep keep replace keep keep keep keep keep
 Object-level permissions respected by Browseable API 
rest_framework/renderers.py