Ticket #4547: newforms-typos.diff

File newforms-typos.diff, 1.5 KB (added by Grant Kelly <gkelly@…>, 8 years ago)

Fixed a few small typos in newforms doc

  • newforms.txt

     
    12241224this process, there are various places you can change, each one serving a
    12251225different purpose. Thee types of cleaning methods are run during form
    12261226processing. These are normally executed when you call the ``is_valid()``
    1227 method on a form. There are other things that can kick of cleaning and
     1227method on a form. There are other things that can kick off cleaning and
    12281228validation (accessing the ``errors`` attribute or calling ``full_clean()``
    12291229directly), but normally they won't be needed.
    12301230
     
    12341234method should return the cleaned (normalised) data as a Python object.
    12351235
    12361236If you detect multiple errors during a cleaning method and wish to signal all
    1237 of them to the form submittor, it is possible to pass a list of errors to the
     1237of them to the form submitter, it is possible to pass a list of errors to the
    12381238``ValidationError`` constructor.
    12391239
    12401240The three types of cleaning methods are:
     
    12931293The previous paragraph means that if you are overriding ``Form.clean()``, you
    12941294should iterate through ``self.cleaned_data.items()``, possibly considering the
    12951295``_errors`` dictionary attribute on the form as well. In this way, you will
    1296 already know which fields have passed thei individual validation requirements.
     1296already know which fields have passed their individual validation requirements.
    12971297
    12981298A simple example
    12991299~~~~~~~~~~~~~~~~
Back to Top