I'd like to ask a questions. is there any way to use HttpResponseRedirect that will redirect you to your second last page. I'm trying to use HttpResponseRedirect(request.META.get('HTTP_REFERER')) however it only redirects me to the last page.
Try this:
return HttpResponse('<script>history.go(-2)</script>')