summaryrefslogtreecommitdiff
path: root/docs/topics/forms/modelforms.txt
diff options
context:
space:
mode:
authorLuke Plant <L.Plant.98@cantab.net>2010-01-04 22:22:16 +0000
committerLuke Plant <L.Plant.98@cantab.net>2010-01-04 22:22:16 +0000
commitd4f9bff7ef190fdaedaa5319718f1db265d86d56 (patch)
treefda5d04b92bc9bacb321f271bebf3b3b3b0a2897 /docs/topics/forms/modelforms.txt
parent5d75b3d5c4b9dd8fa2837f47843dd78aadb94666 (diff)
[1.1.X] Fixed #12503 - form examples don't validate according to w3c
Thanks to skyl for the report. Backport of r12086 from trunk git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.1.X@12087 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/topics/forms/modelforms.txt')
-rw-r--r--docs/topics/forms/modelforms.txt8
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/topics/forms/modelforms.txt b/docs/topics/forms/modelforms.txt
index c5aa9c8a77..5dabd00ab8 100644
--- a/docs/topics/forms/modelforms.txt
+++ b/docs/topics/forms/modelforms.txt
@@ -697,14 +697,14 @@ There are three ways to render a formset in a Django template.
First, you can let the formset do most of the work::
- <form method="POST" action="">
+ <form method="post" action="">
{{ formset }}
</form>
Second, you can manually render the formset, but let the form deal with
itself::
- <form method="POST" action="">
+ <form method="post" action="">
{{ formset.management_form }}
{% for form in formset.forms %}
{{ form }}
@@ -717,7 +717,7 @@ form as shown above. See the :ref:`management form documentation
Third, you can manually render each field::
- <form method="POST" action="">
+ <form method="post" action="">
{{ formset.management_form }}
{% for form in formset.forms %}
{% for field in form %}
@@ -730,7 +730,7 @@ If you opt to use this third method and you don't iterate over the fields with
a ``{% for %}`` loop, you'll need to render the primary key field. For example,
if you were rendering the ``name`` and ``age`` fields of a model::
- <form method="POST" action="">
+ <form method="post" action="">
{{ formset.management_form }}
{% for form in formset.forms %}
{{ form.id }}