﻿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
6209	FormPreview never passes security_hash validation when a BooleanField is set to False	yimogod@…	rokclimb15	"when you give a boolean field in Form preview, and you give the boolean field ""False"" value, Django will not commit correctly.
First, if i press ""preview"" button, it will preview my form content correctly, but next i press ""submit"" button, Django give the boolean
field ""True"" value unexpected, and stay at this page. Next, i press ""submit"" button again in this page(now the boolean field has ""True"" value), Django can commit correctly...

this is my model
{{{
class TestPreForm(models.Model):
  test = models.CharField(max_length=20, null=True, blank=True)
  is_test = models.BooleanField(default=False)
}}}

this my views
{{{
class TestPreFormPreview(FormPreview):
  def done(self, request, cleaned_data):
    _test = cleaned_data['test']
    _is_test = cleaned_data['is_test']
    TestPreForm.objects.create(test = _test, is_test = _is_test)  
    return render_to_response('preform/form_ok.html', {'test':_test, 'is_test':_is_test})
}}}

this is my urls
{{{
(r'^preform/preview/$', TestPreFormPreview(forms.models.form_for_model(TestPreForm))),
}}}"		closed	contrib.formtools	dev		fixed	preview form	dablak@… rbreathe@… rajesh.dhawan@… dev@… bthomas@…	Accepted	1	0	1	1	0	0
