You should make request.POST (instance QueryDict) change by calling copyon it, and then change the values:
post = request.POST.copy()
post['field'] = value
post.update({'postvar': 'some_value', 'var': 'value'})
post.setlist('list_var', ['some_value', 'other_value']))
request.POST = post
QueryDictdocs - Request and response objects
source
share