Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

magic-removal: Fixed #1644 -- Fixed typo in docs/forms.txt. Thanks, c…

…lelland

git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2805 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit d2fcbcf9d76d5bb8a661ee73dae976c74183098b 1 parent fecc815
Adrian Holovaty adrianholovaty authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 docs/forms.txt
5 docs/forms.txt
View
@@ -242,7 +242,7 @@ and here's the ``create_form`` template::
<h1>Create a place:</h1>
{% if form.has_errors %}
- <h2>Please correct the following error{{ errors|pluralize }}:</h2>
+ <h2>Please correct the following error{{ form.error_dict|pluralize }}:</h2>
{% endif %}
<form method="post" action=".">
@@ -287,7 +287,8 @@ The second argument is the error list retrieved from
this gives each field an ``errors`` item (which is a list of error messages
associated with the field) as well as a ``html_error_list`` item, which is a
``<ul>`` of error messages. The above template uses these error items to
-display a simple error message next to each field.
+display a simple error message next to each field. The error list is saved as
+an ``error_dict`` attribute of the ``FormWrapper`` object.
Using the ``ChangeManipulator``
-------------------------------
Please sign in to comment.
Something went wrong with that request. Please try again.