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:
parent
cd7da17132
commit
5b97a7b11b
|
@ -21,7 +21,7 @@ For example, lets write a validator that only allows even numbers::
|
|||
if value % 2 != 0:
|
||||
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::
|
||||
|
||||
from django.db import models
|
||||
|
|
Loading…
Reference in New Issue