  
          template = loader.get_template(self.template)
          context = RequestContext(request, {
              'form': data.serializer,
              'layout': getattr(getattr(data, 'Meta', None), 'layout', 'horizontal'),
              'renderer': self
          })
          return template.render(context)
  
  
 
</s> remove 
        template = loader.get_template(self.template)
 </s> add         template = loader.get_template('rest_framework/horizontal/form.html') </s> remove             'layout': layout
 </s> add  </s> remove     template = 'rest_framework/form.html'
 </s> add  </s> remove         template_name = 'rest_framework/fields/' + layout + '/' + base
 </s> add         template_name = template_pack + '/fields/' + base </s> remove         if style_type == 'textarea' and layout == 'inline':
            style_type = 'default'
 </s> add 
            'template_pack': 'rest_framework/horizontal',
  
          template = loader.get_template(self.template)
          context = RequestContext(request, {
              'form': data.serializer,
            'template_pack': 'rest_framework/horizontal',
              'renderer': self
          })
          return template.render(context)
  
  
keep keep keep keep replace keep keep keep keep keep
 Reorganize to use template_pack in form rendering 
rest_framework/renderers.py