On 3/13/07, Grupo Django <[EMAIL PROTECTED]> wrote:
>
> Hi!
> I have created a form using newforms, and one field is author which I
> want to fill using the current username, I did this:
> request.POST['author']="Username I want"
> and I got this err
Hello,
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
Hi!
I have created a form using newforms, and one field is author which I
want to fill using the current username, I did this:
request.POST['author']="Username I want"
and I got this error:
"QueryDict instance is immutable"
Ok, what should I do? I thought about c
3 matches
Mail list logo