Easiest said with pictures.

I’m not sure how to create the 2nd column with the button. Then how to add an id so that the button runs code for the specific record.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Although I think actions are better, if you really need a button, here’s the easiest way:
Define a function that returns an HTML button in your model. How a view handles that button action is your call and just like any other view.
One idea is to link to a specific URL like
/restart/3/(if this button is performing a safe operation) or put form elements in each button that POSTs to a separate view with<input type="hidden" name="id" value="%(the_id)s" />