diff --git a/docs/ref/forms/api.txt b/docs/ref/forms/api.txt index 285d43b01c..96c0440fb3 100644 --- a/docs/ref/forms/api.txt +++ b/docs/ref/forms/api.txt @@ -96,7 +96,7 @@ e-mail address:: >>> f = ContactForm(data) >>> f.is_valid() False - + .. attribute:: Form.errors Access the :attr:`~Form.errors` attribute to get a dictionary of error @@ -530,7 +530,7 @@ string or Unicode object, respectively:: >>> unicode(f['subject']) u'' -Form objects define a custom ``__iter__`` method which allows you to loop +Form objects define a custom ``__iter__()`` method, which allows you to loop through their fields:: >>> f = ContactForm() diff --git a/docs/topics/forms/index.txt b/docs/topics/forms/index.txt index fb3dcb480a..220ab0fdc0 100644 --- a/docs/topics/forms/index.txt +++ b/docs/topics/forms/index.txt @@ -295,9 +295,9 @@ templates: Reusable form templates ----------------------- -If your site uses the same rendering logic for forms in multiple places you -can create a template that contains just the form loop and use the -:ttag:`include` tag to reuse it in your other templates:: +If your site uses the same rendering logic for forms in multiple places, you +can reduce duplication by saving the form's loop in a standalone template and +using the :ttag:`include` tag to reuse it in other templates::
-You can also create a custom :ref:`inclusion -tag