I have a view that I then want to redirect to another view with a success message. The signature of the method that I want to redirect to is:
quizView(request, quizNumber, errorMessage=None, successMessage=None)
And my attempt at redirecting to that view is:
return redirect(quizView, quizNumber=quizNumber, errorMessage=None, successMessage="Success!")
I've tried almost every combination of named and un-named parameters, but it doesn't work. Also, I tried just returning the the second view with the first, but then the URL is still where it was in the old view instead of appearing as though it has redirected. Is there a way to make this work?