Ticket #3236: newforms.txt.diff
File newforms.txt.diff, 1.1 KB (added by , 18 years ago) |
---|
-
newforms.txt
85 85 Do this by subclassing ``django.newforms.Form`` and specifying the form's 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``:: 92 92 … … 313 313 in the ``ContactForm`` class. 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. 319 319