          data = (obj is not None) and serializer.data or None
          form_instance = OnTheFlyForm(data)
  
          template = loader.get_template(self.template)
          context = RequestContext(request, {'form': form_instance})
  
          return template.render(context)
  
  
  class BrowsableAPIRenderer(BaseRenderer):
 
</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 </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     def serializer_to_form_fields(self, serializer):
 </s> add     def data_to_form_fields(self, data): </s> remove             if getattr(v, 'label', None) is not None:
                kwargs['label'] = v.label
 </s> add             if getattr(val, 'label', None) is not None:
                kwargs['label'] = val.label </s> remove             if getattr(v, 'default', None) is not None:
                kwargs['initial'] = v.default
 </s> add             if getattr(val, 'default', None) is not None:
                kwargs['initial'] = val.default
        context = RequestContext(request, {'form': DynamicForm(data)})
          data = (obj is not None) and serializer.data or None
          form_instance = OnTheFlyForm(data)
  
          template = loader.get_template(self.template)
        context = RequestContext(request, {'form': DynamicForm(data)})
  
          return template.render(context)
  
  
  class BrowsableAPIRenderer(BaseRenderer):
keep keep keep keep replace keep keep keep keep keep
 Cleanup and dealing with empty form data. 
rest_framework/renderers.py