

def render(self, form, form_style, context, template_pack=TEMPLATE_PACK, **kwargs):
    for tab in self.fields:
        tab.active = False
    self.open_target_group_for_form(form)
    content = self.get_rendered_fields(form, form_style, context, template_pack)
    links = ''.join((tab.render_link(template_pack) for tab in self.fields))
    context.update({
        'tabs': self,
        'links': links,
        'content': content,
    })
    template = self.get_template_name(template_pack)
    return render_to_string(template, context.flatten())

dataset/ETHPy150Open maraujop/django-crispy-forms/crispy_forms/bootstrap.py TabHolder.render/original