summaryrefslogtreecommitdiff
path: root/docs/model-api.txt
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2005-10-20 13:22:20 +0000
committerAdrian Holovaty <adrian@holovaty.com>2005-10-20 13:22:20 +0000
commit169f9d2bd3b8940a0de7cc63c765d5d21eced800 (patch)
tree7bf03e6394eec254a4860be7047f6a17b1401241 /docs/model-api.txt
parentd8b83674940282c082bb3d2fce3f19bfd1589988 (diff)
Fixed #655 -- Improved 'validator_list' section of docs/model-api.txt.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@978 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/model-api.txt')
-rw-r--r--docs/model-api.txt9
1 files changed, 8 insertions, 1 deletions
diff --git a/docs/model-api.txt b/docs/model-api.txt
index f355f9fd5e..fa6d8f10e6 100644
--- a/docs/model-api.txt
+++ b/docs/model-api.txt
@@ -171,7 +171,14 @@ The following arguments are available to all field types. All are optional.
Like ``unique_for_date`` and ``unique_for_month``.
``validator_list``
- A list of extra validators to apply to the field.
+ A list of extra validators to apply to the field. Each should be a callable
+ that takes the parameters ``field_data, all_data`` and raises
+ ``django.core.validators.ValidationError`` for errors. (See the
+ `validator docs`_.)
+
+ Django comes with quite a few validators. They're in ``django.core.validators``.
+
+.. _validator docs: http://www.djangoproject.com/documentation/forms/#validators
Field types
-----------