mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	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
This commit is contained in:
		| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user