Changeset 7978
- Timestamp:
- 07/19/08 06:27:55 (1 month ago)
- Files:
-
- django/trunk/docs/newforms.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/docs/newforms.txt
r7977 r7978 2197 2197 2198 2198 You might want to allow the user to create several articles at once. To create 2199 a formset of ``ArticleForm``syou would do::2199 a formset of out of an ``ArticleForm`` you would do:: 2200 2200 2201 2201 >>> from django.newforms.formsets import formset_factory … … 2472 2472 <tr><th><label for="id_form-0-my_field">My field:</label></th><td><input type="text" name="form-0-my_field" id="id_form-0-my_field" /></td></tr> 2473 2473 2474 Using a formset sin views and templates2475 -------------------------------------- -2474 Using a formset in views and templates 2475 -------------------------------------- 2476 2476 2477 2477 Using a formset inside a view is as easy as using a regular ``Form`` class.
