Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #5053 -- Added 'action' attribute to <form> tags that didn't ha…

…ve 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
  • Loading branch information...
commit 9a090b2c1f953d9f8ede4bd71747204cf153098e 1 parent 89977a6
Adrian Holovaty authored

Showing 1 changed file with 4 additions and 4 deletions. Show diff stats Hide diff stats

  1. 8  docs/newforms.txt
8  docs/newforms.txt
@@ -641,7 +641,7 @@ the "Outputting forms as HTML" section above.
641 641
 The simplest way to display a form's HTML is to use the variable on its own,
642 642
 like this::
643 643
 
644  
-    <form method="post">
  644
+    <form method="post" action="">
645 645
     <table>{{ form }}</table>
646 646
     <input type="submit" />
647 647
     </form>
@@ -653,7 +653,7 @@ class' ``__str__()`` method calls its ``as_table()`` method.
653 653
 
654 654
 The following is equivalent but a bit more explicit::
655 655
 
656  
-    <form method="post">
  656
+    <form method="post" action="">
657 657
     <table>{{ form.as_table }}</table>
658 658
     <input type="submit" />
659 659
     </form>
@@ -675,7 +675,7 @@ individual fields for complete template control over the form's design.
675 675
 The easiest way is to iterate over the form's fields, with
676 676
 ``{% for field in form %}``. For example::
677 677
 
678  
-    <form method="post">
  678
+    <form method="post" action="">
679 679
     <dl>
680 680
     {% for field in form %}
681 681
         <dt>{{ field.label }}</dt>
@@ -696,7 +696,7 @@ Alternatively, you can arrange the form's fields explicitly, by name. Do that
696 696
 by accessing ``{{ form.fieldname }}``, where ``fieldname`` is the field's name.
697 697
 For example::
698 698
 
699  
-    <form method="post">
  699
+    <form method="post" action="">
700 700
     <ul class="myformclass">
701 701
         <li>{{ form.sender.label }} {{ form.sender }}</li>
702 702
         <li class="helptext">{{ form.sender.help_text }}</li>

0 notes on commit 9a090b2

Please sign in to comment.
Something went wrong with that request. Please try again.