improve ui by alowing remove button #1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi, first of all thanks for your project.
I was struggling with django form_set for last two weeks, until i found your project and everything became clear to me.
However, while working on my project I found there could be some upgrade on your project, might be helpful to others.
issue: while adding new row in the formset; both in images and variation; user is not able to remove newly added row, unless the keep the input empty and submit.
to solve this i have done the follows.
this enables option to removing newly added row in the formset. When there is an pk that means the row coming from database, so, display 'delete' button. when there is no pk, that means the row is not from database (newly added), so it display 'remove' button.
I have tested by adding and editing some products. so, ignore the image added into the media dir.
Again thanks for your work man.
you saved me by your project. specially, when the formset is so tricky to manage.