You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It took me quite some time to find out I should use {% bootstrap_form form.forms.my_inner_form %} and {% bootstrap_field form.forms.my_inner_form.my_inner_field %}. Actual documentation talks about form.composite_fields a lot, but that's not usable here. Also {{ form.my_inner_form }} works, but {% bootstrap_form form.my_inner_form %} surprisingly doesn't.
The text was updated successfully, but these errors were encountered:
Hi, thanks for the suggestion. I don't know the django-bootstrap3 library but it probably only accepts Django's BoundField and standard Django forms. However to make superform work, we need to extend those datastructures quite a bit in order to bring the extra functionality into existing forms.
But, yes, I agree that we should better document what kind of data/types the {{ form.my_inner_form }} or {{ form.forms.my_inner_form }} constructs do return. We need to do that in a generic way though and cannot only speak about django-bootstrap3 as this would be to very limitted.
It took me quite some time to find out I should use
{% bootstrap_form form.forms.my_inner_form %}
and{% bootstrap_field form.forms.my_inner_form.my_inner_field %}
. Actual documentation talks aboutform.composite_fields
a lot, but that's not usable here. Also{{ form.my_inner_form }}
works, but{% bootstrap_form form.my_inner_form %}
surprisingly doesn't.The text was updated successfully, but these errors were encountered: