Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
  • Loading branch information...
commit 169f9d2bd3b8940a0de7cc63c765d5d21eced800 1 parent d8b8367
Adrian Holovaty authored October 20, 2005

Showing 1 changed file with 8 additions and 1 deletion. Show diff stats Hide diff stats

  1. 9  docs/model-api.txt
9  docs/model-api.txt
@@ -171,7 +171,14 @@ The following arguments are available to all field types. All are optional.
171 171
     Like ``unique_for_date`` and ``unique_for_month``.
172 172
 
173 173
 ``validator_list``
174  
-    A list of extra validators to apply to the field.
  174
+    A list of extra validators to apply to the field. Each should be a callable
  175
+    that takes the parameters ``field_data, all_data`` and raises
  176
+    ``django.core.validators.ValidationError`` for errors. (See the
  177
+    `validator docs`_.)
  178
+
  179
+    Django comes with quite a few validators. They're in ``django.core.validators``.
  180
+
  181
+.. _validator docs: http://www.djangoproject.com/documentation/forms/#validators
175 182
 
176 183
 Field types
177 184
 -----------

0 notes on commit 169f9d2

Please sign in to comment.
Something went wrong with that request. Please try again.