  
  # And the template tags themselves...
  
  @register.simple_tag
  def render_field(field, layout=None, renderer=None):
      return renderer.render_field(field, layout)
  
  
  @register.simple_tag
  def optional_login(request):
      """
 
</s> remove 
        template = loader.get_template(self.template)
 </s> add         template = loader.get_template('rest_framework/horizontal/form.html') </s> remove     template = 'rest_framework/form.html'
 </s> add  </s> remove             'layout': getattr(getattr(data, 'Meta', None), 'layout', 'horizontal'),
 </s> add             'template_pack': 'rest_framework/horizontal', </s> remove         template_name = 'rest_framework/fields/' + layout + '/' + base
 </s> add         template_name = template_pack + '/fields/' + base </s> remove             'layout': layout
 </s> add 
def render_field(field, template_pack=None, renderer=None):
    return renderer.render_field(field, template_pack)
  
  # And the template tags themselves...
  
  @register.simple_tag
def render_field(field, template_pack=None, renderer=None):
    return renderer.render_field(field, template_pack)
def render_field(field, template_pack=None, renderer=None):
    return renderer.render_field(field, template_pack)
  
  
  @register.simple_tag
  def optional_login(request):
      """
keep keep keep keep replace replace keep keep keep keep keep
 Reorganize to use template_pack in form rendering 
rest_framework/templatetags/rest_framework.py