﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
4271	Form should use a copy of data passed to it	Gary Wilson <gary.wilson@…>	Adrian Holovaty	"Usually, one passes POST data directly to the form like so:

{{{
#!python
if request.method == 'POST':
    form = MyForm(request.POST)
}}}

and request.POST is an immutable QueryDict.  This means that you cannot fiddle with the data, for say if you wanted to remove keys so that the data doesn't get redisplayed when the form has errors.

I could make the copy in my own code:
{{{
#!python
form = MyForm(request.POST.copy())
}}}
but just thought this might be something useful to do more generally.

If anyone has a better alternative for not redisplaying submitted data, please mention it."		closed	Forms	dev		wontfix			Design decision needed	1	0	0	0	0	0
