20
How would I call on the following multiple submit forms --
<form action="/" method="post">
{% csrf_token %}
<input type="text" name="{{ email.id }}" value=" {{email}}"></td>
<td><input type="submit" value="Edit"></td>
<td><input type="submit" value="Delete"></td>
</tr>
</form>
I want to do something like this --
if value = edit:
do this
if value = delete:
do this
How would I code this in the views.py file?