﻿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
1111	Documentation Error in custom validator example	afarnham@…	Jacob	"From the documentation as it is at the time of this bug report:
{{{
from django.core import validators, formfields

class ContactManipulator(formfields.Manipulator):
    def __init__(self):
        self.fields = (
            # ... snip fields as above ...
            formfields.EmailField(field_name=""to"", validator_list=[self.isValidToAddress])
        )

    def isValidToAddress(self, field_data, all_data):
        if not field_data.endswith(""@example.com""):
            raise ValidationError(""You can only send messages to example.com e-mail addresses."")

}}}

Calls to ValidationError be written as such:
{{{
raise validators.ValidationError(...)
}}}

ValidationError by itself is undefined."	defect	closed	Documentation		normal	fixed			Unreviewed	0	0	0	0	0	0
