﻿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
6652	Allow 'clean()' to specify the wrong field	Daniele Varrazzo <piro@…>	nobody	"Currently the {{{Form.clean()}}} method has no way to specify which field is invalid, but it's the only place where  validation involving many fields can be accomplished. Taking your example in the documentation:

''This is where you might put in things to check that if field A is supplied, field B must contain a valid email address and the like. ''

If the field B doesn't contain a valid email address, the error message should appear next to the B widget, not at the top of the form.

An easy fix is to add a 'field' optional attribute to the {{{ValidationError}}} and use it if provided. I already used this method in other programs of mine (my exception class was called {{{ValidationError}}} too!)"		closed	Forms	dev		fixed	feature		Design decision needed	1	0	0	0	0	0
