﻿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
11516	form improvements	OjiiDotCh@…	nobody	"I really like how forms are handled in Django but I see a way to improve them:

Basically when a new form is sent to the user via a view, that form instance is kept saved somewhere (session?) and after the user clicks 'submit' the next page can access the filled in form via request.form. This should also support adding additional information to the form which isn't displayed or even sent to the user.

Example:


{{{
def myview(request):
    # View which displays the form to the user
    myform = SomeFormClass()
    myform.secretValue = 42
    return render_to_response('some/template/file', {'form':myform})

def myview2(request):
    # View which is called when the user 'submits' the form
    if request.form and request.form.is_valid():
        secretValue = request.form.secretValue
}}}
"		closed	contrib.formtools	dev		invalid			Unreviewed	0	0	0	0	0	0
