Ticket #4547: newforms-typos.diff
File newforms-typos.diff, 1.5 KB (added by , 17 years ago) |
---|
-
newforms.txt
1224 1224 this process, there are various places you can change, each one serving a 1225 1225 different purpose. Thee types of cleaning methods are run during form 1226 1226 processing. These are normally executed when you call the ``is_valid()`` 1227 method on a form. There are other things that can kick of cleaning and1227 method on a form. There are other things that can kick off cleaning and 1228 1228 validation (accessing the ``errors`` attribute or calling ``full_clean()`` 1229 1229 directly), but normally they won't be needed. 1230 1230 … … 1234 1234 method should return the cleaned (normalised) data as a Python object. 1235 1235 1236 1236 If you detect multiple errors during a cleaning method and wish to signal all 1237 of them to the form submitt or, it is possible to pass a list of errors to the1237 of them to the form submitter, it is possible to pass a list of errors to the 1238 1238 ``ValidationError`` constructor. 1239 1239 1240 1240 The three types of cleaning methods are: … … 1293 1293 The previous paragraph means that if you are overriding ``Form.clean()``, you 1294 1294 should iterate through ``self.cleaned_data.items()``, possibly considering the 1295 1295 ``_errors`` dictionary attribute on the form as well. In this way, you will 1296 already know which fields have passed thei individual validation requirements.1296 already know which fields have passed their individual validation requirements. 1297 1297 1298 1298 A simple example 1299 1299 ~~~~~~~~~~~~~~~~