elo80ka / django-dynamic-formset

A jQuery plugin that allows you dynamically add new forms to a rendered django formset.
675 stars 309 forks source link

If an inline formsets has no initial forms, I cannot add others #154

Open matfire opened 5 years ago

matfire commented 5 years ago

If I try to use this plugin to add a new inline formset where there were none(the parent had no children) the buttons won't even show up. If I set an extra of 1 the buttons show up, but the initial empty form does not modify the management form when it is deleted, so I can't succesfully post. Does anyone have any idea how to solve this?

nferrari commented 5 years ago

Just encountered the same issue. Unfortunately this project seems abandoned. Did you manage to find a workaround? Thank you.

matthew-a-dunlap commented 3 years ago

I ran into a similar issue using crispy + bootstrap4 + table_inline_formset. The add button is present but does nothing. Seems to be because when the formset is empty the template does not populate enough table info for django-dynamic-formset to act upon.