diff options
author | Adrian Holovaty <adrian@holovaty.com> | 2006-05-02 00:06:43 +0000 |
---|---|---|
committer | Adrian Holovaty <adrian@holovaty.com> | 2006-05-02 00:06:43 +0000 |
commit | d2fcbcf9d76d5bb8a661ee73dae976c74183098b (patch) | |
tree | 39aea7021099f19fc39945401430745862440c23 | |
parent | fecc815f3f67a25439cc1b5662e3254224cd1309 (diff) | |
download | django-d2fcbcf9d76d5bb8a661ee73dae976c74183098b.tar.gz |
magic-removal: Fixed #1644 -- Fixed typo in docs/forms.txt. Thanks, clellandarchive/attic/magic-removalattic/magic-removal
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2805 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r-- | docs/forms.txt | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/docs/forms.txt b/docs/forms.txt index 4258738d39..2f8a3106fc 100644 --- a/docs/forms.txt +++ b/docs/forms.txt @@ -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`` ------------------------------- |