def render_form_errors(form, type='all', **kwargs):
    'Render form errors to a Bootstrap layout.'
    renderer_cls = get_form_renderer(**kwargs)
    return renderer_cls(form, **kwargs).render_errors(type)
Render form errors to a Bootstrap layout.
def render_form_errors(form, type='all', **kwargs):
    
    renderer_cls = get_form_renderer(**kwargs)
    return renderer_cls(form, **kwargs).render_errors(type)