elo80ka / django-dynamic-formset

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

Only rows specified in 'extra' are saved and rows above 'extra' do not have default values #189

Open periwinkleFTW opened 3 years ago

periwinkleFTW commented 3 years ago

The number of rows specified in the extra (in my case 2) are rendered properly and have correct default values from the model. However, adding new rows renders them with all fields empty and the rows above the extra value just remove the previous rows of data. Anyone knows what is going on?

It seems that official docs mention form-TOTAL_FORMS, form-INITIAL_FORMS) from the management_form and it seems like that is the issue. Anyone knows how to handle this behaviour?