Fixed a typo in ref/validators.txt.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@12102 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Joseph Kocherhans 2010-01-05 06:20:21 +00:00
parent cd7da17132
commit 5b97a7b11b
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ For example, lets write a validator that only allows even numbers::
if value % 2 != 0: if value % 2 != 0:
raise ValidationError(u'%s is not an even number' % value) raise ValidationError(u'%s is not an even number' % value)
You can then added this to your model fields via the field's ``validators`` You can then add this to your model fields via the field's ``validators``
argument:: argument::
from django.db import models from django.db import models