I have a view that validates and saves a form. After the form is saved, I\'d like redirect back to a list_object view with a success message \"form for customer xyz was suc
I found the following to work if more than just a message needs to be added to the redirect:
from django.shortcuts import redirect
import urllib
def my_view(request):
...
context = {'foo1': bar1, 'foo2': bar2, 'foo3': bar3}
return redirect('/redirect_link/?' + urllib.parse.urlencode(context))
See also how to pass context data with django redirect function?