I have a django_tables2 table inside a form, this is necessary because there's a delete selected button on top. In every row, I need a submit button with some action like 'accept', 'deny', etc.
But I don't know how to recognize the row of which the button was pressed. How can I accomplish this?
I have found this way to add a button to each row with an id that refers to the row you select :
in app/tables.py
in app/views.py, just like usual :
Then I use Jquery to trigger what I want for each button by retrieving their id ...
Maybe it is a little bit too simple for what you want to do, I've seen other solutions maybe more efficient with LinkColumns and Django URL dispatcher : Django-Tables2 LinkColumn link doesn't work