def render_form(form, **kwargs):
    'Render a form to a Bootstrap layout.'
    renderer_cls = get_form_renderer(**kwargs)
    return renderer_cls(form, **kwargs).render()
Render a form to a Bootstrap layout.
def render_form(form, **kwargs):
    
    renderer_cls = get_form_renderer(**kwargs)
    return renderer_cls(form, **kwargs).render()