﻿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
14184	Validators not called on MultiValueField	anonymous	Paul Collins	"Validators are not called for the compressed value of a !MultiValueField.

If, say, I have a {{{ MultiValueField }}} subclass which takes a first name and a last name and compresses the two into a ""Lastname, Firstname"" and this {{{ MultiValueField }}} subclass was instantiated using {{{ validators = [disallow_john_doe] }}}, one would expect that {{{ disallow_john_doe(compressed value) }}} would be executed. However, this is not the case.

Looking at the source, it appears that while the {{{ clean() }}} method of {{{ django.forms.fields.Field }}} calls {{{ run_validators() }}}, the {{{ clean() }}} method of {{{ django.forms.fields.MultiValueField }}} does not. This is different from expected behaviour and is not documented to my knowledge.

The workaround is to implement {{{ validate() }}} in the subclass."	Bug	closed	Forms	1.2	Normal	fixed	MultiValueField Validators	Paul Collins	Ready for checkin	1	0	0	0	0	0
