From a180f638bbacb7fc9109307ca4a3e3770eabbcea Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Sat, 24 Dec 2005 16:27:53 +0000 Subject: [PATCH] Fixed #1111 -- Fixed bug in docs/forms.txt. Thanks, afarhham git-svn-id: http://code.djangoproject.com/svn/django/trunk@1776 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- docs/forms.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/forms.txt b/docs/forms.txt index 6074564ce9..335976676b 100644 --- a/docs/forms.txt +++ b/docs/forms.txt @@ -424,7 +424,7 @@ your own couldn't be easier:: 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.") + raise validators.ValidationError("You can only send messages to example.com e-mail addresses.") Above, we've added a "to" field to the contact form, but required that the "to" address end with "@example.com" by adding the ``isValidToAddress`` validator to