Ticket #1644: doc_change.diff

File doc_change.diff, 958 bytes (added by clelland@…, 12 years ago)

Quick documentation patch

  • docs/forms.txt

    243243    <h1>Create a place:</h1>
    245245    {% if form.has_errors %}
    246     <h2>Please correct the following error{{ errors|pluralize }}:</h2>
     246    <h2>Please correct the following error{{ form.error_dict|pluralize }}:</h2>
    247247    {% endif %}
    249249    <form method="post" action=".">
    288288this gives each field an ``errors`` item (which is a list of error messages
    289289associated with the field) as well as a ``html_error_list`` item, which is a
    290290``<ul>`` of error messages. The above template uses these error items to
    291 display a simple error message next to each field.
     291display a simple error message next to each field. The error list is saved
     292as an ``error_dict`` attribute of the ``FormWrapper`` object.
    293294Using the ``ChangeManipulator``
Back to Top