﻿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
609	When using validators.RequiredIfOtherFieldEquals with a Boolean field, it doesn't work the obvious way	slashzero	Adrian Holovaty	"When using the RequiredIfOtherFieldEquals on a Boolean field, the form field want's 'on' for True instead of True
For instance
{{{
    blog_url = meta.URLField(verbose_name=""Blog url"",null=True,blank=True,
                             validator_list=[validators.RequiredIfOtherFieldEquals(""has_blog"",True,""You must provide a Blog url"")])
}}}
doesn't work where as:
{{{
    blog_url = meta.URLField(verbose_name=""Blog url"",null=True,blank=True,
                             validator_list=[validators.RequiredIfOtherFieldEquals(""has_blog"",'on',""You must provide a Blog url"")])
}}}

does. This seems a little counter-intuitive


"	defect	closed	contrib.admin		normal	invalid			Design decision needed	0	0	0	0	0	0
