<form action="/" method="post">
{% csrf_token %}
<td><input type="submit" value="Изменить" name="_edit"></td>
<td><input type="submit" value="Удалить" name="_delete"></td>
</tr>
if request.POST:
if '_edit' in request.POST:
do_edit()
elif '_delete' in request.POST:
do_delete()