django-bootstrap-modal-forms
django-bootstrap-modal-forms copied to clipboard
Async delete
Currently, async deletes don't work because the js submits them twice (once to validate the form, once to actually perform the action). If we assume deletes don't generally require form validation, then the problem is solved by adding a setting that skips the form validation step and submits it directly.
Added async delete code alongside the standard delete code to show how to use the new setting.
Added a functional test of async delete (note that since the page never reloads, now we get an empty table instead of a message that no books are in the database)
@yunenliu Nice work. I'll check it out and accept it as soon as possible. Most probably in coming weekend.
@yunenliu Sorry for not including your PR back in 2020. I'm again working on this package from time to time thus I would like to ask you if you're interested in adjusting this outdated PR to the current code. It would be great to have you as collaborator. Otherwise I would like to thank you for your contribution and include your idea in one of the next releases.