[Fixed]-How to get class/id name from template (django) on post

1👍

Try This:

<button type="submit" value="{{b.id}}" name="id_value" class"delete_poll">Borrar</button>

Then in a view:

request.POST.get("id_value", "")

Read this can help you too. Django Doc

Leave a comment