Changeset 6769
- Timestamp:
- 11/29/07 23:16:51 (1 year ago)
- Files:
-
- django/trunk/docs/newforms.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/docs/newforms.txt
r6740 r6769 885 885 <li>Haircut type: <input type="text" name="haircut_type" /></li> 886 886 887 888 887 Prefixes for forms 889 888 ------------------ 890 889 891 890 You can put several Django forms inside one ``<form>`` tag. To give each 892 ``Form`` its own namespace you need touse the ``prefix`` keyword argument::891 ``Form`` its own namespace, use the ``prefix`` keyword argument:: 893 892 894 893 >>> mother = PersonForm(prefix="mother") … … 900 899 <li><label for="id_father-first_name">First name:</label> <input type="text" name="father-first_name" id="id_father-first_name" /></li> 901 900 <li><label for="id_father-last_name">Last name:</label> <input type="text" name="father-last_name" id="id_father-last_name" /></li> 902 903 901 904 902 Fields
