Django

Code

Changeset 6769

Show
Ignore:
Timestamp:
11/29/07 23:16:51 (1 year ago)
Author:
adrian
Message:

Edited docs/newforms.txt changes from [6532]

Files:

Legend:

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

    r6740 r6769  
    885885    <li>Haircut type: <input type="text" name="haircut_type" /></li> 
    886886 
    887  
    888887Prefixes for forms 
    889888------------------ 
    890889 
    891890You can put several Django forms inside one ``<form>`` tag. To give each 
    892 ``Form`` its own namespace you need to use the ``prefix`` keyword argument:: 
     891``Form`` its own namespace, use the ``prefix`` keyword argument:: 
    893892 
    894893    >>> mother = PersonForm(prefix="mother") 
     
    900899    <li><label for="id_father-first_name">First name:</label> <input type="text" name="father-first_name" id="id_father-first_name" /></li> 
    901900    <li><label for="id_father-last_name">Last name:</label> <input type="text" name="father-last_name" id="id_father-last_name" /></li> 
    902  
    903901 
    904902Fields