Skip to content

Commit 9a090b2

Browse files
Fixed #5053 -- Added 'action' attribute to <form> tags that didn't have that attribute in docs/newforms.txt examples. Perfectionism appreciated, trickyb
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5813 bcc190cf-cafb-0310-a4f2-bffc1f526a37
1 parent 89977a6 commit 9a090b2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/newforms.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -641,7 +641,7 @@ the "Outputting forms as HTML" section above.
641641
The simplest way to display a form's HTML is to use the variable on its own,
642642
like this::
643643

644-
<form method="post">
644+
<form method="post" action="">
645645
<table>{{ form }}</table>
646646
<input type="submit" />
647647
</form>
@@ -653,7 +653,7 @@ class' ``__str__()`` method calls its ``as_table()`` method.
653653

654654
The following is equivalent but a bit more explicit::
655655

656-
<form method="post">
656+
<form method="post" action="">
657657
<table>{{ form.as_table }}</table>
658658
<input type="submit" />
659659
</form>
@@ -675,7 +675,7 @@ individual fields for complete template control over the form's design.
675675
The easiest way is to iterate over the form's fields, with
676676
``{% for field in form %}``. For example::
677677

678-
<form method="post">
678+
<form method="post" action="">
679679
<dl>
680680
{% for field in form %}
681681
<dt>{{ field.label }}</dt>
@@ -696,7 +696,7 @@ Alternatively, you can arrange the form's fields explicitly, by name. Do that
696696
by accessing ``{{ form.fieldname }}``, where ``fieldname`` is the field's name.
697697
For example::
698698

699-
<form method="post">
699+
<form method="post" action="">
700700
<ul class="myformclass">
701701
<li>{{ form.sender.label }} {{ form.sender }}</li>
702702
<li class="helptext">{{ form.sender.help_text }}</li>

0 commit comments

Comments
 (0)