I have a page that user can place an order via a model form. The post method is the same page.
path
domain/provider/order/3
meaning add an order for provider 3
view is like this
def place_order(request, provider_id):
form = OrderForm()
if request.method=="POST":
if form.is_valid():
#do something with model and save it
#redirecting back
return redirect('providers')
return render_to_response('add_order.html', {'form':form}
If i place an order it redirects me as it should back to "providers". But if i go to place an order for a different customer and press back i navigate back to the previous order page(at some point). Doesn't redirect clear the back button history?How can i achieve this kind of behaviour? Llike redirecting to some page and reseting the back button behaviour so the redirected page becomes the first one in the page "stack"