How can I get the name of a button when clicked ? Note that, the button is not in a form so I it does not work with `request.POST.get('button_name)'. My button is more of the form:
<button onclick="location.href='{% url 'assigntask' %}'" type="button" name="Assign_Task">Assign Task</button>
I tried:
if request.POST.get('Assign_Task'):
print "User Clicked Assign Task"