Skip to content
Discussion options

You must be logged in to vote

Further experimentation showed that the problem in my case was the use of the FieldsetMixin. To be honest I'm not sure why this was included in the definition of AddressForm. I suspect I saw it in an example somewhere and just copied it in.

If the FieldsetMixin is not used, the template file utilised by the form by the bootstrap renderer is formset/bootstrap/form.html, which uses formset/bootstrap/field_group.html to render the fields. The latter explicitly references control_css_classes, which explains why control_css_classes takes effect when FieldsetMixin is not used.

When FieldsetMixin is included, the template used is formset/default/fieldset.html. This in turn uses formset/default/f…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@jwoithe
Comment options

Comment options

You must be logged in to vote
2 replies
@jrief
Comment options

@jwoithe
Comment options

Answer selected by jwoithe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants