Changeset 4291
- Timestamp:
- 01/05/07 14:14:26 (2 years ago)
- Files:
-
- django/trunk/docs/newforms.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/docs/newforms.txt
r4289 r4291 86 86 fields, in a declarative style that you'll be familiar with if you've used 87 87 Django database models. In this section, we'll iteratively develop a form 88 object that you might to implement "contact me" functionality on your personal89 Web site.88 object that you might use to implement "contact me" functionality on your 89 personal Web site. 90 90 91 91 Start with this basic ``Form`` subclass, which we'll call ``ContactForm``:: … … 308 308 ``BooleanField`` is represented by an ``<input type="checkbox">``. Note 309 309 these are merely sensible defaults; you can specify which HTML to use for 310 a given field by using ``widgets``, which we'll explain shortly.310 a given field by using widgets, which we'll explain shortly. 311 311 312 312 * The HTML ``name`` for each tag is taken directly from its attribute name … … 314 314 315 315 * The text label for each field -- e.g. ``'Subject:'``, ``'Message:'`` and 316 ``'C Cmyself:'`` is generated from the field name by converting all316 ``'Cc myself:'`` is generated from the field name by converting all 317 317 underscores to spaces and upper-casing the first letter. Again, note 318 318 these are merely sensible defaults; you can also specify labels manually.
