How to post data with HttpResponseRedirect?
I have a button in Django admin change form:
<input type="submit" value="Test Peer" name="_peer-test">
and the view to get it:
def response_change(self, request, obj): ### response
if "_peer-test" in request.POST:
url = request.POST.get('obj', '/export')
return HttpResponseRedirect(url)
The first line def response_change(self, request, obj): has data
So if I type obj.name I will get the requested data.
What I want is to redirect to another view en post de information.