AndrewIngram / django-extra-views

Django's class-based generic views are awesome, let's have more of them.
MIT License
1.38k stars 172 forks source link

ModelFormset Update #204

Closed neyder closed 4 years ago

neyder commented 4 years ago

Hi,

By default this will populate the formset with all the instances of Item in the database.

But when I add another formset, or just change previous filled, it doesn't update. and it conflicts if unique field is in formset, so, cant use ModelFormSetView to create and/or update.

Some hints with that?

sdolemelipone commented 4 years ago

Hi @neyder , can you provide relevant lines of the code you're using and describe the problem in more detail?

neyder commented 4 years ago

Hi @neyder , can you provide relevant lines of the code you're using and describe the problem in more detail?

I'm sorry , i totally forgot to add formset.form.id field, so before it was creating new unique entries.