maraujop/django-crispy-forms — pull request #171 by chrisv2 (2013-04-24 18:25:08+00:00)
Title: bootstrap tab: "active" class is added several times, and to several tabs

When used as class attributes on a form, the bootstrap.Container and bootstrap.TabHolder helpers are not properly reinitialized, which leads to duplicate css "active" attribute, and (in case of error on tab) to several tabs being active together.

Example:
```
class TestForm(forms.Form):
val1 = forms.CharField(required=False)
val2 = forms.CharField(required=True)
helper = FormHelper()
helper.layout = Layout(
TabHolder(Tab('one', 'val1',),
Tab('two', 'val2',)))

test_form = TestForm()
html = render_crispy_form(test_form)
...