DEV Community

Discussion on: Django inline formsets with Class-based views and crispy forms

Collapse
 
st0ked56 profile image
Michael

Thank you for the example. This works great!

What would be the best way to wrap the formset fields in a DIV? I have in the helper.Layout the below logic.

        Fieldset('Logistics',
                 Formset('logistics')
                 ),
Enter fullscreen mode Exit fullscreen mode

I would like to Div('Formset_field', css_class="", data-toggle="", etc.)