              return self.get_raw_data_form(view, method, request, media_types)
          finally:
              view.request = restore
  
      def get_form(self, view, method, request):
          """
          Get a form, possibly bound to either the input or output data.
          In the absence on of the Resource having an associated form then
          provide a form that can be used to submit arbitrary content.
          """
 
</s> remove     def _get_form(self, view, method, request):
        # We need to impersonate a request with the correct method,
        # so that eg. any dynamic get_serializer_class methods return the
        # correct form for each method.
        restore = view.request
        request = clone_request(request, method)
        view.request = request
        try:
            return self.get_form(view, method, request)
        finally:
            view.request = restore

    def _get_raw_data_form(self, view, method, request, media_types):
 </s> add     def _get_rendered_html_form(self, view, method, request): </s> remove             return self.get_raw_data_form(view, method, request, media_types)
 </s> add             return self.get_rendered_html_form(view, method, request) </s> remove     def render(self, serializer, obj, request):
        fields = self.serializer_to_form_fields(serializer)
 </s> add     def render(self, data, accepted_media_type=None, renderer_context=None):
        self.renderer_context = renderer_context or {}
        request = renderer_context['request'] </s> remove         OnTheFlyForm = type(str("OnTheFlyForm"), (forms.Form,), fields)
        data = (obj is not None) and serializer.data or None
        form_instance = OnTheFlyForm(data)
 </s> add         fields = self.data_to_form_fields(data)
        DynamicForm = type(str('DynamicForm'), (forms.Form,), fields)
        data = None if data.empty else data
    def get_rendered_html_form(self, view, method, request):
              return self.get_raw_data_form(view, method, request, media_types)
          finally:
              view.request = restore
  
    def get_rendered_html_form(self, view, method, request):
          """
          Get a form, possibly bound to either the input or output data.
          In the absence on of the Resource having an associated form then
          provide a form that can be used to submit arbitrary content.
          """
keep keep keep keep replace keep keep keep keep keep
 Cleanup and dealing with empty form data. 
rest_framework/renderers.py