Django

Code

Changeset 5813

Show
Ignore:
Timestamp:
08/06/07 00:16:35 (1 year ago)
Author:
adrian
Message:

Fixed #5053 -- Added 'action' attribute to <form> tags that didn't have that attribute in docs/newforms.txt examples. Perfectionism appreciated, trickyb

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/docs/newforms.txt

    r5808 r5813  
    642642like this:: 
    643643 
    644     <form method="post"
     644    <form method="post" action=""
    645645    <table>{{ form }}</table> 
    646646    <input type="submit" /> 
     
    654654The 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" /> 
     
    676676``{% for field in form %}``. For example:: 
    677677 
    678     <form method="post"
     678    <form method="post" action=""
    679679    <dl> 
    680680    {% for field in form %} 
     
    697697For example:: 
    698698 
    699     <form method="post"
     699    <form method="post" action=""
    700700    <ul class="myformclass"> 
    701701        <li>{{ form.sender.label }} {{ form.sender }}</li>