django views issue?

You’ve got a couple of options here. My recommendation would be to change it from an <input ... to <button ...