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
Following the docs here I tried to render each form in a formset individually (I am rendering each form in an accordion group and I don't think you can achieve that with FormHelper/Layout?).
However I was getting validation errors:
[{'id': ['This field is required.']}, {'id': ['This field is required.']}, {'id': ['This field is required.']}]
Some googling let to very old issues #143 and #266 and it seems that this only works if you add helper.render_unmentioned_fields.
If this isn't the case and I am doing something wrong then would be good to know what.
If it is the case then would be good to update the docs to make this clear.
The text was updated successfully, but these errors were encountered:
So on further inspection I think it might actually be a ModelForm + Layout issue rather than a formset issue.
Basically if you specify a helper.layout and don't include id field then it won't be rendered which leads to this issue. The only real way to fix this is by adding the render_unmentioned property or by setting the somewhat unclear id field explicitly.
2.0
4.2.4
3.11.4
bootstrap5
Description:
Following the docs here I tried to render each form in a formset individually (I am rendering each form in an accordion group and I don't think you can achieve that with
FormHelper
/Layout
?).However I was getting validation errors:
Some googling let to very old issues #143 and #266 and it seems that this only works if you add
helper.render_unmentioned_fields
.If this isn't the case and I am doing something wrong then would be good to know what.
If it is the case then would be good to update the docs to make this clear.
The text was updated successfully, but these errors were encountered: