I have a select box and an input box that submits to a view in django.
When I submit it adds the value in django then the page reloads and the select box values are updated.
However if I press ‘refresh’ on that page, it tries to resubmit values again. How can I prevent this behavior, I would like the refresh after the POST to be a normal refresh of the page as if no POST had been submitted previously.
localhost/project/myview/3/3
I am trying to do a "return HttpResponseRedirect(reverse("myview"), firstid=3, secondid=3)"
But it does not seem to be working, is this the right way of doing it and how do I fix this?
HttpResponseRedirectonly takes one parameter. You need to pass the id parameters toreverse: