diff options
| author | Boulder Sprinters <boulder-sprinters@djangoproject.com> | 2007-06-18 16:43:17 +0000 |
|---|---|---|
| committer | Boulder Sprinters <boulder-sprinters@djangoproject.com> | 2007-06-18 16:43:17 +0000 |
| commit | 750549569ea8d911db0397bd034406d5ce35d923 (patch) | |
| tree | e516db51e7fb41b457c2caa64f54d7210128840f /docs/newforms.txt | |
| parent | 1f09aa1e7b4079e22d1dfcde0f7d4e571389d8b5 (diff) | |
boulder-oracle-sprint: Merged to [5490]
git-svn-id: http://code.djangoproject.com/svn/django/branches/boulder-oracle-sprint@5491 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/newforms.txt')
| -rw-r--r-- | docs/newforms.txt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/newforms.txt b/docs/newforms.txt index e37d76643a..1511791a7d 100644 --- a/docs/newforms.txt +++ b/docs/newforms.txt @@ -1224,7 +1224,7 @@ Form validation happens when the data is cleaned. If you want to customise this process, there are various places you can change, each one serving a different purpose. Thee types of cleaning methods are run during form processing. These are normally executed when you call the ``is_valid()`` -method on a form. There are other things that can kick of cleaning and +method on a form. There are other things that can trigger cleaning and validation (accessing the ``errors`` attribute or calling ``full_clean()`` directly), but normally they won't be needed. @@ -1234,7 +1234,7 @@ the ``ValidationError`` constructor. If no ``ValidationError`` is raised, the method should return the cleaned (normalised) data as a Python object. If you detect multiple errors during a cleaning method and wish to signal all -of them to the form submittor, it is possible to pass a list of errors to the +of them to the form submitter, it is possible to pass a list of errors to the ``ValidationError`` constructor. The three types of cleaning methods are: @@ -1293,7 +1293,7 @@ dictionary. The previous paragraph means that if you are overriding ``Form.clean()``, you should iterate through ``self.cleaned_data.items()``, possibly considering the ``_errors`` dictionary attribute on the form as well. In this way, you will -already know which fields have passed thei individual validation requirements. +already know which fields have passed their individual validation requirements. A simple example ~~~~~~~~~~~~~~~~ |
