﻿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
31306	Raise ValidationError on first failure.	Doug Fultz	nobody	"Currently field validators are executed in order and any exceptions are collected before raising a single ValidationError for that field.
https://github.com/django/django/blob/master/django/db/models/fields/__init__.py#L600

I have identified a use case where a validator may reach our to an external service or be very expensive to run, compared to other validators on the field.  It would help increase performance and decrease load on other services if there was an option for field validation to fail on the first exception and prevent subsequent validators from being executed.

An example might be a validator that looks like
{{{#!python
...
validators = [RegexValidator(r'\w'), ExpensiveExists]
}}}

Where the regex validator is fast and runs locally while ExpensiveExists calls out to an external service.  In this case, we would want validation to fail on the regex and not call the expensive validation."	New feature	closed	Database layer (models, ORM)	3.0	Normal	wontfix	feature request validators		Unreviewed	0	0	0	0	0	0
