Thank you!
That particular QueryDict instance is immutable, so you won't get what
you want.
Try the following:
new_data = request.POST.copy()
new_data['author'] = "Username I want"
This will create a mutable instance and fill it with the correct data.
You can then use new_data in whatever context you were using
request.POST.
Cheers,
Michael Axiak
old = request.POST._mutable
request.POST._mutable = True
for k, v in args.items():
request.POST[k] = v
request.POST._mutable = old
But except you have strong idea, I don't suggest that you do like
above. You can copy() it and the new instance can be changed.
--
I like python!
UliPad <<The Python Editor>>: http://wiki.woodpecker.org.cn/moin/UliPad
My Blog: http://www.donews.net/limodou