Ticket #3236: newforms.txt.diff

File newforms.txt.diff, 1.1 KB (added by christoffer.carlborg@…, 18 years ago)
  • newforms.txt

     
    8585Do this by subclassing ``django.newforms.Form`` and specifying the form's
    8686fields, in a declarative style that you'll be familiar with if you've used
    8787Django database models. In this section, we'll iteratively develop a form
    88 object that you might to implement "contact me" functionality on your personal
    89 Web site.
     88object that you might use to implement "contact me" functionality on your
     89personal Web site.
    9090
    9191Start with this basic ``Form`` subclass, which we'll call ``ContactForm``::
    9292
     
    313313      in the ``ContactForm`` class.
    314314
    315315    * The text label for each field -- e.g. ``'Subject:'``, ``'Message:'`` and
    316       ``'CC myself:'`` is generated from the field name by converting all
     316      ``'Cc myself:'`` is generated from the field name by converting all
    317317      underscores to spaces and upper-casing the first letter. Again, note
    318318      these are merely sensible defaults; you can also specify labels manually.
    319319
Back to Top