i am doing a small project in django by using python.
In that project, there is a table with list of pending task having columns: task_id,summary,description,due_date.
I have to give ‘edit’ button in each row so that one can edit the data of that particular row. But I am not able to identify the button click event in view page for the particular row.
Please somebody help me…
I’m assuming you’re not talking about browser click events since you’re tagging this with
pythonanddjangoonly.You can identify which
<input type="submit">element was pressed by giving it aname.A user clicking on
<input type="submit" value="edit" name="summary" />will be identified by the presence of asummarykey inrequest.POST